mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
chore: ran linting
This commit is contained in:
parent
79f004bbb1
commit
bcdfd23ea1
4 changed files with 7 additions and 6 deletions
|
|
@ -147,7 +147,10 @@ export function getAuthErrorMessage(errorCode: string, returnTitle: boolean = fa
|
|||
if (!errorInfo) {
|
||||
const patterns = [
|
||||
{ pattern: /credential|password|email/i, code: "LOGIN_BAD_CREDENTIALS" },
|
||||
{ pattern: /not found|no account|does not exist|user not found/i, code: "LOGIN_USER_NOT_FOUND" },
|
||||
{
|
||||
pattern: /not found|no account|does not exist|user not found/i,
|
||||
code: "LOGIN_USER_NOT_FOUND",
|
||||
},
|
||||
{ pattern: /verify|verification/i, code: "LOGIN_USER_NOT_VERIFIED" },
|
||||
{ pattern: /inactive|disabled|suspended/i, code: "USER_INACTIVE" },
|
||||
{ pattern: /exists|duplicate/i, code: "REGISTER_USER_ALREADY_EXISTS" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue