Skip to content

Instantly share code, notes, and snippets.

@0xKayvan
Last active January 3, 2024 20:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save 0xKayvan/9fb6d48934aa093b0014 to your computer and use it in GitHub Desktop.
Save 0xKayvan/9fb6d48934aa093b0014 to your computer and use it in GitHub Desktop.
enable gitlab sign-in after accidentally disable it in admin
sudo gitlab-rails console
ApplicationSetting.last.update_attributes(signin_enabled: true)
exit
sudo gitlab-ctl restart
@111emran
Copy link

111emran commented Apr 4, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment