From 2cb6d44fab07d0dc0bdd5da152e9f511a3e9b518 Mon Sep 17 00:00:00 2001 From: Eduardo Robles Elvira Date: Mon, 4 Sep 2023 16:54:44 +0200 Subject: [PATCH] alternative auth methods: switch back to smartlink tab fails Parent issue: https://github.com/sequentech/meta/issues/222 --- avRegistration/login-directive/login-directive.html | 3 +++ avRegistration/login-directive/login-directive.js | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/avRegistration/login-directive/login-directive.html b/avRegistration/login-directive/login-directive.html index 0c83c878..e4bb9589 100644 --- a/avRegistration/login-directive/login-directive.html +++ b/avRegistration/login-directive/login-directive.html @@ -48,8 +48,11 @@ +
  • diff --git a/avRegistration/login-directive/login-directive.js b/avRegistration/login-directive/login-directive.js index cec9f364..87e9ce56 100644 --- a/avRegistration/login-directive/login-directive.js +++ b/avRegistration/login-directive/login-directive.js @@ -514,6 +514,14 @@ angular.module('avRegistration') return; } + // smart link cannot be enabled if it doesn't come from the url + if ( + scope.selectedAltMethod !== 'smart-link' + && altAuthMethod === 'smart-link' + ) { + return; + } + var authevent = angular.copy(scope.base_authevent); if (altAuthMethod === null) { scope.current_alt_auth_method_id = null;