Last active
January 3, 2024 20:56
-
-
Save 0xKayvan/9fb6d48934aa093b0014 to your computer and use it in GitHub Desktop.
enable gitlab sign-in after accidentally disable it in admin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo gitlab-rails console | |
ApplicationSetting.last.update_attributes(signin_enabled: true) | |
exit | |
sudo gitlab-ctl restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For Gitlab 14.0.12 and later versions the command to be applied in the Rails console changed again. Now it is:
Gitlab::CurrentSettings.update!(password_authentication_enabled_for_web: true)