Skip to content

Commit

Permalink
umbraco#7658 Fix linking account if multiple IDP on common user overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
lillheaton committed Mar 25, 2020
1 parent 2ec0861 commit 0cc90c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ angular.module("umbraco")
});
}

$scope.linkProvider = function (e) {
e.target.submit();
}

$scope.unlink = function (e, loginProvider, providerKey) {
var result = confirm("Are you sure you want to unlink this account?");
if (!result) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,11 @@ <h5>

<div ng-repeat="login in externalLoginProviders">

<form ng-if="login.linkedProviderKey == undefined" method="POST" action="{{externalLinkLoginFormAction}}" id="oauthloginform" name="oauthloginform">
<form ng-submit="linkProvider($event)" ng-if="login.linkedProviderKey == undefined" method="POST" action="{{externalLinkLoginFormAction}}">
<input type="hidden" name="provider" value="{{login.authType}}" />
<button class="btn btn-block btn-social"
ng-class="login.properties.SocialStyle"
id="{{login.authType}}"
onclick="document.forms.oauthloginform.submit();">
id="{{login.authType}}">

<i class="fa" ng-class="login.properties.SocialIcon"></i>
<localize key="defaultdialogs_linkYour">Link your</localize>&nbsp;{{login.caption}}&nbsp;<localize key="defaultdialogs_account">account</localize>
Expand Down

0 comments on commit 0cc90c3

Please sign in to comment.