diff --git a/surfsense_backend/app/users.py b/surfsense_backend/app/users.py index 01b0727a9..b68461fc0 100644 --- a/surfsense_backend/app/users.py +++ b/surfsense_backend/app/users.py @@ -204,9 +204,7 @@ class UserManager(UUIDIDMixin, BaseUserManager[User, uuid.UUID]): credentials.password, user.hashed_password ) if not verified: - logger.warning( - f"Failed login attempt (wrong password) for user: {user.id}" - ) + logger.warning(f"Failed login attempt (wrong password) for user: {user.id}") return None if updated_password_hash is not None: await self.user_db.update(user, {"hashed_password": updated_password_hash}) diff --git a/surfsense_web/app/(home)/login/LocalLoginForm.tsx b/surfsense_web/app/(home)/login/LocalLoginForm.tsx index 76e16cd0c..dddd6531a 100644 --- a/surfsense_web/app/(home)/login/LocalLoginForm.tsx +++ b/surfsense_web/app/(home)/login/LocalLoginForm.tsx @@ -95,7 +95,6 @@ export function LocalLoginForm() { title: errorDetails.title, message: errorDetails.description, }); - } }; diff --git a/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/RowActions.tsx b/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/RowActions.tsx index eb44d114a..5c5a44964 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/RowActions.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/RowActions.tsx @@ -208,7 +208,8 @@ export function RowActions({ Delete document? - This action cannot be undone. This will permanently delete this document from your search space. + This action cannot be undone. This will permanently delete this document from your + search space. diff --git a/surfsense_web/lib/auth-errors.ts b/surfsense_web/lib/auth-errors.ts index 41cd12ec3..c1f0a3be3 100644 --- a/surfsense_web/lib/auth-errors.ts +++ b/surfsense_web/lib/auth-errors.ts @@ -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" },