@ -342,7 +342,8 @@ let needSetup = false;
callback ( {
ok : false ,
msg : "The user is inactive or deleted." ,
msg : "authUserInactiveOrDeleted" ,
msgi18n : true ,
} ) ;
}
} catch ( error ) {
@ -351,7 +352,8 @@ let needSetup = false;
callback ( {
ok : false ,
msg : "Invalid token." ,
msg : "authInvalidToken" ,
msgi18n : true ,
} ) ;
}
@ -427,7 +429,8 @@ let needSetup = false;
callback ( {
ok : false ,
msg : "Invalid Token!" ,
msg : "authInvalidToken" ,
msgi18n : true ,
} ) ;
}
}
@ -437,7 +440,8 @@ let needSetup = false;
callback ( {
ok : false ,
msg : "Incorrect username or password." ,
msg : "authIncorrectCreds" ,
msgi18n : true ,
} ) ;
}
@ -493,7 +497,8 @@ let needSetup = false;
} else {
callback ( {
ok : false ,
msg : "2FA is already enabled." ,
msg : "2faAlreadyEnabled" ,
msgi18n : true ,
} ) ;
}
} catch ( error ) {
@ -523,7 +528,8 @@ let needSetup = false;
callback ( {
ok : true ,
msg : "2FA Enabled." ,
msg : "2faEnabled" ,
msgi18n : true ,
} ) ;
} catch ( error ) {
@ -552,7 +558,8 @@ let needSetup = false;
callback ( {
ok : true ,
msg : "2FA Disabled." ,
msg : "2faDisabled" ,
msgi18n : true ,
} ) ;
} catch ( error ) {
@ -584,7 +591,8 @@ let needSetup = false;
} else {
callback ( {
ok : false ,
msg : "Invalid Token." ,
msg : "authInvalidToken" ,
msgi18n : true ,
valid : false ,
} ) ;
}
@ -647,7 +655,8 @@ let needSetup = false;
callback ( {
ok : true ,
msg : "Added Successfully." ,
msg : "successAdded" ,
msgi18n : true ,
} ) ;
} catch ( e ) {
@ -700,7 +709,8 @@ let needSetup = false;
callback ( {
ok : true ,
msg : "Added Successfully." ,
msg : "successAdded" ,
msgi18n : true ,
monitorID : bean . id ,
} ) ;
@ -937,7 +947,8 @@ let needSetup = false;
callback ( {
ok : true ,
msg : "Resumed Successfully." ,
msg : "successResumed" ,
msgi18n : true ,
} ) ;
} catch ( e ) {
@ -956,7 +967,8 @@ let needSetup = false;
callback ( {
ok : true ,
msg : "Paused Successfully." ,
msg : "successPaused" ,
msgi18n : true ,
} ) ;
} catch ( e ) {
@ -994,7 +1006,8 @@ let needSetup = false;
callback ( {
ok : true ,
msg : "Deleted Successfully." ,
msg : "successDeleted" ,
msgi18n : true ,
} ) ;
await server . sendMonitorList ( socket ) ;
@ -1056,7 +1069,8 @@ let needSetup = false;
if ( bean == null ) {
callback ( {
ok : false ,
msg : "Tag not found" ,
msg : "tagNotFound" ,
msgi18n : true ,
} ) ;
return ;
}
@ -1087,7 +1101,8 @@ let needSetup = false;
callback ( {
ok : true ,
msg : "Deleted Successfully." ,
msg : "successDeleted" ,
msgi18n : true ,
} ) ;
} catch ( e ) {
@ -1110,7 +1125,8 @@ let needSetup = false;
callback ( {
ok : true ,
msg : "Added Successfully." ,
msg : "successAdded" ,
msgi18n : true ,
} ) ;
} catch ( e ) {
@ -1133,7 +1149,8 @@ let needSetup = false;
callback ( {
ok : true ,
msg : "Edited Successfully." ,
msg : "successEdited" ,
msgi18n : true ,
} ) ;
} catch ( e ) {
@ -1156,7 +1173,8 @@ let needSetup = false;
callback ( {
ok : true ,
msg : "Deleted Successfully." ,
msg : "successDeleted" ,
msgi18n : true ,
} ) ;
} catch ( e ) {
@ -1250,7 +1268,8 @@ let needSetup = false;
callback ( {
ok : true ,
msg : "Password has been updated successfully." ,
msg : "successAuthChangePassword" ,
msgi18n : true ,
} ) ;
} catch ( e ) {
@ -1374,7 +1393,8 @@ let needSetup = false;
callback ( {
ok : true ,
msg : "Deleted" ,
msg : "successDeleted" ,
msgi18n : true ,
} ) ;
} catch ( e ) {
@ -1609,7 +1629,8 @@ let needSetup = false;
callback ( {
ok : true ,
msg : "Backup successfully restored." ,
msg : "successBackupRestored" ,
msgi18n : true ,
} ) ;
} catch ( e ) {