Added loginkey check for server maintenance mode (#7383)

This commit is contained in:
TheDevRyan
2025-10-25 13:42:09 +01:00
committed by GitHub
parent d31a7e54dc
commit 29858c65e7
2 changed files with 10 additions and 2 deletions

View File

@@ -79,7 +79,11 @@
case 10: { msg = "ERROR: Invalid account check, verification url is only valid for 30 minutes."; break; }
case 11: { msg = "Sharing link not valid yet."; break; }
case 12: { msg = "Sharing link is expired."; break; }
case 13: { msg = "If you are an administrator, [login here].".replace('[', '<a href=login?loginscreen=1>').replace(']', '</a>'); break; }
case 13: {
var loginUrl = 'login?loginscreen=1' + (urlargs.key ? '&key=' + urlargs.key : '');
msg = "If you are an administrator, [login here].".replace('[', '<a href=' + loginUrl + '>').replace(']', '</a>');
break;
}
case 14: { msg = '<a href=' + window.location.href + '&confirm=1>' + "Click here to reset your account password." + '</a>'; break; }
}

View File

@@ -80,7 +80,11 @@
case 10: { msg = "ERROR: Invalid account check, verification url is only valid for 30 minutes."; break; }
case 11: { msg = "Sharing link not valid yet."; break; }
case 12: { msg = "Sharing link is expired."; break; }
case 13: { msg = "If you are an administrator, [login here].".replace('[', '<a href=?loginscreen=1>').replace(']', '</a>'); break; }
case 13: {
var loginUrl = '?loginscreen=1' + (urlargs.key ? '&key=' + urlargs.key : '');
msg = "If you are an administrator, [login here].".replace('[', '<a href=' + loginUrl + '>').replace(']', '</a>');
break;
}
case 14: { msg = '<a href=' + window.location.href + '&confirm=1>' + "Click here to reset your account password." + '</a>'; break; }
}