You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by an...@apache.org on 2019/12/12 08:38:56 UTC

[syncope] branch 2_0_X updated: [SYNCOPE-1524] use instead of to redirect to social registration, also for OIDC

This is an automated email from the ASF dual-hosted git repository.

andreapatricelli pushed a commit to branch 2_0_X
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/2_0_X by this push:
     new 1f16f57  [SYNCOPE-1524] use  instead of  to redirect to social registration, also for OIDC
1f16f57 is described below

commit 1f16f57ffce185724c29808e06128c4a561b40ea
Author: Andrea Patricelli <an...@apache.org>
AuthorDate: Thu Dec 12 09:33:58 2019 +0100

    [SYNCOPE-1524] use  instead of  to redirect to social registration, also for OIDC
---
 .../META-INF/resources/app/js/controllers/OIDCClientController.js    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/client/enduser/src/main/resources/META-INF/resources/app/js/controllers/OIDCClientController.js b/client/enduser/src/main/resources/META-INF/resources/app/js/controllers/OIDCClientController.js
index 8d7b3cd..0ce63b1 100644
--- a/client/enduser/src/main/resources/META-INF/resources/app/js/controllers/OIDCClientController.js
+++ b/client/enduser/src/main/resources/META-INF/resources/app/js/controllers/OIDCClientController.js
@@ -18,9 +18,10 @@
  */
 
 'use strict';
-angular.module("login").controller("OIDCClientController", function ($scope, $rootScope, $state, userAttrs) {
+angular.module("login").controller("OIDCClientController", function ($scope, $rootScope, $location, userAttrs) {
   $scope.selfCreate = function () {
-    $state.go("create" + $rootScope.getWizardFirstStep());
+    // use $location instead of $state because Angular routes may not have been initialized, yet
+    $location.path("/self/create" + $rootScope.getWizardFirstStep().replace('.', '/'));
   };
 
   $rootScope.oidcops.userAttrs = userAttrs;