Timothy J. Baek 1 年之前
父節點
當前提交
f267f3f7b0
共有 3 個文件被更改,包括 3 次插入15 次删除
  1. 2 2
      backend/apps/web/models/auths.py
  2. 1 1
      backend/apps/web/models/users.py
  3. 0 12
      src/routes/auth/+page.svelte

+ 2 - 2
backend/apps/web/models/auths.py

@@ -82,7 +82,7 @@ class SignupForm(BaseModel):
     name: str
     email: str
     password: str
-    profile_image_url: str
+    profile_image_url: Optional[str] = "/user.png"
 
 
 class AuthsTable:
@@ -95,7 +95,7 @@ class AuthsTable:
         email: str,
         password: str,
         name: str,
-        profile_image_url: str,
+        profile_image_url: str = "/user.png",
         role: str = "pending",
     ) -> Optional[UserModel]:
         log.info("insert_new_auth")

+ 1 - 1
backend/apps/web/models/users.py

@@ -61,7 +61,7 @@ class UsersTable:
         id: str,
         name: str,
         email: str,
-        profile_image_url: str,
+        profile_image_url: str = "/user.png",
         role: str = "pending",
     ) -> Optional[UserModel]:
         user = UserModel(

+ 0 - 12
src/routes/auth/+page.svelte

@@ -43,18 +43,6 @@
 			}
 		);
 
-		if (!canvasPixelTest()) {
-			toast.info(
-				$i18n.t(
-					'Fingerprint spoofing detected: default profile picture set. Disable to access Initial avatar!'
-				),
-				{
-					position: 'bottom-center',
-					duration: 1000 * 10
-				}
-			);
-		}
-
 		await setSessionUser(sessionUser);
 	};