Remember login id and password in an angular 5 application

148 views
Skip to first unread message

Raghu Ram

unread,
Aug 20, 2019, 10:04:24 AM8/20/19
to Angular and AngularJS discussion
I want to store login id and password whenever remember me checkbox is checked. Next time when user enters url in the browser login id and password should get populated ie..user need not enter user id and password.
I have implemented using cookies, Can you please suggest me a secure way of doing this.

Tito

unread,
Aug 20, 2019, 5:19:06 PM8/20/19
to Angular and AngularJS discussion
there is already an answer for you in https://gitter.im/angular/angular.js

+++V+++

no, just no
don't do that
at all
you don't keep authentication data in a front-end application
nor in a cookie
you only store it hashed in your database
and that's the backend's responsability
the only thing you're allowed to do is securely pass the data to the backend

Raghu Ram

unread,
Aug 21, 2019, 3:28:42 AM8/21/19
to Angular and AngularJS discussion
Thanks for replying.

Sagar Jadhav

unread,
Aug 21, 2019, 6:30:29 AM8/21/19
to ang...@googlegroups.com
yes I agree with you 

--
You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/angular/63333272-6567-4dca-975b-6576ed25dfc4%40googlegroups.com.


--
Thanks,
Sagar Jadhav

Breach of confidentiality

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake then delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

Liability for the unintentional transmission of computer viruses

WARNING: Although the MetaMagic Global has taken reasonable precautions to ensure no viruses are present in this email, MetaMagic cannot accept responsibility for any loss or damage arising from the use of this email or attachments.

Reply all
Reply to author
Forward
0 new messages