mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 03:17:46 +01:00
fix: add conditional password confirmation on signup
Password confirmation during signup is now only enforced if the 'enable_signup_password_confirmation' feature flag is enabled in the config. This allows for more flexible signup flows based on configuration.
This commit is contained in:
@@ -64,9 +64,11 @@
|
||||
};
|
||||
|
||||
const signUpHandler = async () => {
|
||||
if (password !== confirmPassword) {
|
||||
toast.error($i18n.t('Passwords do not match.'));
|
||||
return;
|
||||
if ($config?.features?.enable_signup_password_confirmation) {
|
||||
if (password !== confirmPassword) {
|
||||
toast.error($i18n.t('Passwords do not match.'));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
const sessionUser = await userSignUp(name, email, password, generateInitialsImage(name)).catch(
|
||||
|
||||
Reference in New Issue
Block a user