montylab2014-03-13 16:27:25
montylab, 2014-03-13 16:27:25

Angular js, How to implement registration, login, password change?

For work, there is such a task - https://gist.github.com/matzipan/346e76bba792848545bc
Write an html/js + test angular example that allows the user to register, login, and change password.
Since I just started learning angular, I have no idea where to start and how to attach resources.js to this project. Perhaps there are some ready-made examples on the net that can be parsed. Tell me, please, what can I read, and where to start?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Sergey, 2014-03-13

You have been given the bc.resources module, just specify it as a dependency on your module.
In the run method of the module, you write a check (the isAuthenticated method provided by your this module, but in general you can make a watcher that will monitor changes in the authorization status), if the user is not authorized, redirect him to the authorization screen, and from there you give the opportunity to go to the registration screen or password recovery ... in fact, here, as in any other site, in fact. For routing, use ngRoute.
Read the documentation. And somehow the task looks like a test task...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question