mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #3663] enh: Allow Only OAuth Signup/Signin #28869
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Louden7 on GitHub (Jul 6, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/3663
Describe the solution you'd like
With the ability to sign up/in now with OAuth2, the option to only allow OAuth2 and remove the default email and password fields would be a great feature. This could be accomplished by adding a new optional environment variable to "hide" or remove the default email and password fields. The optional environment variable would have a default value of
false(not hidden) and only used whenENABLE_OAUTH_SIGNUP=true.Describe alternatives you've considered
Able to disable signups with environment variables but this does not remove the username and password fields resulting in a undesired cluttering when only wanting to use OAuth for logins.
@tjbck commented on GitHub (Jul 6, 2024):
PR welcome!
@Seth-Rothschild commented on GitHub (Jul 7, 2024):
@Louden7 I care about this too! If it's ok with you I can put in a PR for it. I have a branch at https://github.com/Seth-Rothschild/open-webui/tree/hide-password-login that adds an environment variable
ENABLE_PASSWORD_LOGINwhich defaults totrueand hides the password form when it's switched tofalse.@ghost commented on GitHub (Jul 18, 2024):
Has there been any progress in merging this to the main branch.
@Louden7 commented on GitHub (Jul 25, 2024):
Closing with the recent merge #4068.