forked from open-webui/open-webui
refac
This commit is contained in:
parent
663b5adaf2
commit
f267f3f7b0
3 changed files with 3 additions and 15 deletions
|
@ -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:
|
||||||
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:
|
||||||
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 @@
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue