This commit is contained in:
Timothy J. Baek 2024-04-06 23:16:29 -07:00
parent 663b5adaf2
commit f267f3f7b0
3 changed files with 3 additions and 15 deletions

View file

@ -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")

View file

@ -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(

View file

@ -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);
};