Initial upload to Gitea
This commit is contained in:
1 parent
78193254ad
commit
8478998cae
1485 files changed
+461025
-42348
No files matched your search
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
// adpanel:login-error-codes — the login page shows only server-owned messages
|
||||
// selected by code; query text is never echoed (content-spoofing on the most
|
||||
// phishing-relevant page). Non-string query values (qs arrays/objects) are ignored.
|
||||
const LOGIN_ERROR_CODE_SUSPENDED = "suspended";
|
||||
const LOGIN_ERROR_MESSAGES = new Map([[LOGIN_ERROR_CODE_SUSPENDED, "Your account is suspended"]]);
|
||||
function resolveLoginErrorMessage(rawCode) {
|
||||
return typeof rawCode === "string" ? (LOGIN_ERROR_MESSAGES.get(rawCode) || null) : null;
|
||||
}
|
||||
module.exports = { LOGIN_ERROR_CODE_SUSPENDED, resolveLoginErrorMessage };
|
||||
Reference in new issue
Block a user