sudo gitlab-rails console
ApplicationSetting.last.update_attributes(password_authentication_enabled_for_web: true)