This repository has been archived by the owner on Mar 7, 2021. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I achieve the function of "remember me",when user checked the check box(named remember me),next
time,user load (or reload )the web,the username and password will add to the text box automatic.
That is my method to achieve the function:
1.I use the javascript and cookie of browser to achieve the function .
2.I enable the HTML element "remember-me" check box .
3.Modify the login.js, add the responding of check box click,when user checked the check box,set the cookie,un-checked the check box clear the cookie.
4.Add a javascript file :rememberMe.js, this script set,get and check the cookie of the browser.
5.in the responding of submit action(in login.js),add some code to deal with the situation of that
user checked the check box before input the username and password .