GitLab wurde erfolgreich aktualisiert. Dank regelmäßiger Updates bleibt das THM GitLab sicher und Sie profitieren von den neuesten Funktionen. Danke für Ihre Geduld.

Commit 1a54d347 authored by Daniel Gerhardt's avatar Daniel Gerhardt Committed by Tom Käsler

Remove users' ability to remove their auth connections

parent 2ff52a21
......@@ -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