From cd761f7e5fb2ee2c096e711bb972fe3346ab0655 Mon Sep 17 00:00:00 2001 From: Findeton Date: Wed, 15 May 2024 15:30:22 -0500 Subject: [PATCH] wip --- avRegistration/login-directive/login-directive.js | 1 + dist/appCommon-v10.4.0.js | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/avRegistration/login-directive/login-directive.js b/avRegistration/login-directive/login-directive.js index 5ae7af7a..777057d2 100644 --- a/avRegistration/login-directive/login-directive.js +++ b/avRegistration/login-directive/login-directive.js @@ -848,6 +848,7 @@ angular.module('avRegistration') return; } + scope.isOpenId = altAuthMethod.auth_method === 'openid-connect'; scope.current_alt_auth_method_id = altAuthMethod.id; authevent.extra_fields = altAuthMethod.extra_fields; authevent.auth_method_config = altAuthMethod.auth_method_config; diff --git a/dist/appCommon-v10.4.0.js b/dist/appCommon-v10.4.0.js index b569cbc5..77abe9fc 100644 --- a/dist/appCommon-v10.4.0.js +++ b/dist/appCommon-v10.4.0.js @@ -666,9 +666,10 @@ angular.module("avRegistration").config(function() {}), angular.module("avRegist var authevent = angular.copy(scope.base_authevent); if (null === altAuthMethod) return scope.current_alt_auth_method_id = null, scope.isOpenId = scope.isOpenId || "openid-connect" === authevent.auth_method, void scope.apply(authevent); - altAuthMethod.id !== scope.current_alt_auth_method_id && (isClick && "smart-link" !== scope.selectedAltMethod && "smart-link" === altAuthMethod.auth_method_name || (scope.current_alt_auth_method_id = altAuthMethod.id, - authevent.extra_fields = altAuthMethod.extra_fields, authevent.auth_method_config = altAuthMethod.auth_method_config, - authevent.auth_method = altAuthMethod.auth_method_name, scope.apply(authevent))); + altAuthMethod.id !== scope.current_alt_auth_method_id && (isClick && "smart-link" !== scope.selectedAltMethod && "smart-link" === altAuthMethod.auth_method_name || (scope.isOpenId = "openid-connect" === altAuthMethod.auth_method, + scope.current_alt_auth_method_id = altAuthMethod.id, authevent.extra_fields = altAuthMethod.extra_fields, + authevent.auth_method_config = altAuthMethod.auth_method_config, authevent.auth_method = altAuthMethod.auth_method_name, + scope.apply(authevent))); }, scope.apply = function(authevent) { scope.hasOtpFieldsCode = Authmethod.hasOtpCodeField(authevent), scope.method = authevent.auth_method, scope.oidc_providers = authevent.oidc_providers, scope.current_oidc_providers = getCurrentOidcProviders(authevent),