light cleanup

merge-requests/63/head
Moe 2018-10-03 15:06:37 -07:00
parent 75592aa5d1
commit 6d60b4a972
2 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,7 @@ module.exports = function(s,config,lang){
tx({
f : 'init_success',
childNodes : s.childNodes
});
})
}else{
switch(d.f){
case'cpu':

View File

@ -1081,6 +1081,7 @@ module.exports = function(s,config,lang,io){
currentSuperUser = Object.assign(currentSuperUser,d.form)
//reset email and log change of email
if(d.form.mail !== cn.mail){
logDetails.newEmail = d.form.mail
logDetails.oldEmail = cn.mail + ''
cn.mail = d.form.mail
}