1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-23 23:20:57 +01:00

Remember post password if entered manually

This commit is contained in:
Michael Foster 2013-08-20 23:34:41 +10:00
parent c3434d29fd
commit db8173fe62

View File

@ -168,6 +168,9 @@ function dopost(form) {
if (form.elements['name']) {
localStorage.name = form.elements['name'].value.replace(/( |^)## .+$/, '');
}
if (form.elements['password']) {
localStorage.password = form.elements['password'].value;
}
if (form.elements['email'] && form.elements['email'].value != 'sage') {
localStorage.email = form.elements['email'].value;
}