Commit f267f3f7 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac

parent 663b5ada
...@@ -82,7 +82,7 @@ class SignupForm(BaseModel): ...@@ -82,7 +82,7 @@ class SignupForm(BaseModel):
name: str name: str
email: str email: str
password: str password: str
profile_image_url: str profile_image_url: Optional[str] = "/user.png"
class AuthsTable: class AuthsTable:
...@@ -95,7 +95,7 @@ class AuthsTable: ...@@ -95,7 +95,7 @@ class AuthsTable:
email: str, email: str,
password: str, password: str,
name: str, name: str,
profile_image_url: str, profile_image_url: str = "/user.png",
role: str = "pending", role: str = "pending",
) -> Optional[UserModel]: ) -> Optional[UserModel]:
log.info("insert_new_auth") log.info("insert_new_auth")
......
...@@ -61,7 +61,7 @@ class UsersTable: ...@@ -61,7 +61,7 @@ class UsersTable:
id: str, id: str,
name: str, name: str,
email: str, email: str,
profile_image_url: str, profile_image_url: str = "/user.png",
role: str = "pending", role: str = "pending",
) -> Optional[UserModel]: ) -> Optional[UserModel]:
user = UserModel( user = UserModel(
......
...@@ -43,18 +43,6 @@ ...@@ -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); await setSessionUser(sessionUser);
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment