diff options
Diffstat (limited to 'accounts.js')
-rw-r--r-- | accounts.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/accounts.js b/accounts.js index 27de609..fe9d164 100644 --- a/accounts.js +++ b/accounts.js @@ -24,6 +24,15 @@ export function checkAccount(username) { } /** + * Does a loose check on if the account exists + * @param {String} username Username to check + * @returns {Boolean} + */ +export function checkAccountLoose(username) { + return Object.keys(db).find(n => n.toLowerCase() == username.toLowerCase()); +} + +/** * Create an account * @param {String} username The username * @param {String} password The password |