Skip to content

feat: setting to hide password login #4943

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: mealie-next
Choose a base branch
from

Conversation

cdanis
Copy link

@cdanis cdanis commented Jan 25, 2025

What this PR does / why we need it:

This adds a server config setting to hide the username+password inputs from users on the login page.
This is very useful for installations that use OIDC, and prevents user confusion.
It's been requested in #4581, in a comment in #4477, and arguably in #293.

Which issue(s) this PR fixes:

Fixes #4581

Special notes for your reviewer:

This is my first contribution here, please let me know what more is needed.

Testing

Manually in the dev container.

@michael-genson
Copy link
Collaborator

Generally looks good. I want to get some more eyes on this since I'm not too familiar with the OIDC/LDAP workflow

@cdanis
Copy link
Author

cdanis commented Jan 26, 2025

Fixed the one failing Python test 😄

@rbuchberger
Copy link

Ohh, I'm looking for this! It would be nice if I didn't have to explain to my family that they need to look past the username and password box and go to the Login with Oath button.

@@ -65,7 +67,7 @@
@click:append="togglePasswordShow"
/>
<v-checkbox v-model="form.remember" class="ml-2 mt-n2" :label="$t('user.remember-me')"></v-checkbox>
Copy link

@markp-mckinney markp-mckinney Apr 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember me serves no purpose without password login. There are also a couple other spots that should be conditionally removed:

  1. The "or" divider
  2. Reset Password

I'm not sure if it really even makes sense to include the "register" or "invite only" buttons at all if allowPasswordLogin is false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants