Added login key Check

This commit is contained in:
TheDevRyan 2025-10-25 12:01:36 +01:00
parent f9bb7315cc
commit ac520169dc
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; }
}