LSP: bugfix for md5ing when creating new acc

This commit is contained in:
Cat 2016-11-08 13:41:38 +01:00 committed by Thulinma
parent 339dd37835
commit 30811b57cf
2 changed files with 157 additions and 149 deletions

View file

@ -1909,7 +1909,7 @@ var UI = {
help: 'Enter your desired password. In the future, you will need this to access the Management Interface.',
pointer: {
main: mist.user,
index: 'password'
index: 'rawpassword'
},
classes: ['match_password']
},{
@ -1937,9 +1937,11 @@ var UI = {
},{
authorize: {
new_username: mist.user.name,
new_password: mist.user.password
new_password: mist.user.rawpassword
}
});
mist.user.password = MD5(mist.user.rawpassword);
delete mist.user.rawpassword;
}
}]
}]));