GitLab wird am Donnerstag, den 27. Januar, zwischen 08:00 und 12:00 Uhr wegen wichtigen Wartungsarbeiten nicht zur Verfügung stehen.

Commit b3fd5254 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Remove users' ability to remove their auth connections

parent d0562157
......@@ -8,20 +8,6 @@ def show
# rubocop: disable CodeReuse/ActiveRecord
def unlink
provider = params[:provider]
identity = current_user.identities.find_by(provider: provider)
return render_404 unless identity
if unlink_provider_allowed?(provider)
flash[:alert] = _("You are not allowed to unlink your primary login account")
redirect_to profile_account_path
# rubocop: enable CodeReuse/ActiveRecord
......@@ -21,16 +21,6 @@
= link_to _('Enable two-factor authentication'), profile_two_factor_auth_path, class: 'btn btn-success'
- if display_providers_on_profile?
= s_('Profiles|Social sign-in')
= s_('Profiles|Activate signin with one of the following services')
= render 'providers', providers: button_based_providers, group_saml_identities: local_assigns[:group_saml_identities]
- if current_user.can_change_username?
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment