mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 13:55:19 +00:00
Merge pull request #16233 from andrewbbaek/dev
fix: add conditional password confirmation on signup
This commit is contained in:
commit
a1fac8fc7f
1 changed files with 5 additions and 3 deletions
|
|
@ -64,9 +64,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
const signUpHandler = async () => {
|
const signUpHandler = async () => {
|
||||||
if (password !== confirmPassword) {
|
if ($config?.features?.enable_signup_password_confirmation) {
|
||||||
toast.error($i18n.t('Passwords do not match.'));
|
if (password !== confirmPassword) {
|
||||||
return;
|
toast.error($i18n.t('Passwords do not match.'));
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const sessionUser = await userSignUp(name, email, password, generateInitialsImage(name)).catch(
|
const sessionUser = await userSignUp(name, email, password, generateInitialsImage(name)).catch(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue