I know this is really old. Just wanted to point out that the problem is:
where do you store the token? LocalStorage is not safe agains XSS attacks,
ideally you'd want to store your token in a Secure HttpOnly Cookie.
Em sexta-feira, 3 de maio de 2013 04:41:03 UTC-3, Antonello Pasella
escreveu:
I'm having a login form where username and password is typed in and after
that the login form is redirected to next page by displaying user
credentials using session storage through alert box in angularjs.
Credentials are fetched from the database. I also have attached my code in
the below