PDA

View Full Version : Password is not remembered



morikalina
23 Aug 2012, 4:11 AM
Hi fellows,

I have an application that requires logging in. But the problem is password is not saved or remembered by browsers. Normally browsers ask to if save password, but with ExtJs it is not asked.

Is there a proper way to make browsers remember users password on ExtJs?

Thanks

scottmartin
23 Aug 2012, 12:47 PM
You can use the browser's LocalStorage or a cookie, etc.
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.proxy.LocalStorage

Scott.

burnnat
24 Aug 2012, 5:25 AM
While scottmartin's suggestion will work, it's not necessarily recommended for storing passwords since information stored in localStorage or cookies is insecure. Instead, it's better to trigger the "remember my password" functionality that's built-in for basically all browsers these days.

There is some information about how to do this on StackOverflow:
Original question (http://stackoverflow.com/questions/2944322/extjs-login-with-remember-me-functionality/2945553)
Follow-up for ExtJS 4.1 (http://stackoverflow.com/questions/11965919/browser-does-not-remember-password-during-login)

morikalina
24 Aug 2012, 5:50 AM
Thanks I will try that :)

scottmartin
24 Aug 2012, 7:45 AM
stored in localStorage or cookies is insecure

True .. but it assumed you would encrypt ;)

Scott.