Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Marc Maycas
seal-mask
.a{fill-rule:evenodd;}techdegree
Marc Maycas
Python Web Development Techdegree Student 26,884 Points

Any good video or tutorial on how to create a safe login for users?

I'm trying to create a user login and password using the MEAN stack. In the videos of the courses, we have seen how to implement that in the server side, but what's on the client side?

I found this tutorial for the client side part: http://jasonwatmore.com/post/2015/03/10/angularjs-user-registration-and-login-example-tutorial

With this and the code I have in: https://github.com/Maycas/th-td-fsjs-p12-capstone-TravelPinner, I can create the user, but when I go to the login part, it fails.

Moreover, I have an additional concert, which is that the password is sent through HTTP in clear text using POST. How this can be secure if someone can sniff my requests? Is there additional security that can be used?

By analyzing, for example, facebook, I see that they have the same problem, as they show in the POST request the user's data in the /login request.

Thanks!