Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
luke- committed May 24, 2024
2 parents 5bbda9e + 8162865 commit 36989ea
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
HumHub Changelog
================

1.15.6 (TBA)
------------
- Fix #7013: Opening more auth clients
- Fix #7024: Automatic mapping of existing AuthClient users failed

1.15.5 (May 8, 2024)
--------------------
- Enh #6899: Fix a missed module config file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ public function onAuthSuccess(BaseClient $authClient)
}

$authClientService = new AuthClientService($authClient);
$authClientService->autoMapToExistingUser();

$user = $authClientService->getUser();

Expand All @@ -166,7 +167,6 @@ public function onAuthSuccess(BaseClient $authClient)
return $this->redirect(['/user/auth/login']);
}

$authClientService->autoMapToExistingUser();

if ($user !== null) {
return $this->login($user, $authClient);
Expand Down
4 changes: 2 additions & 2 deletions protected/humhub/modules/user/widgets/AuthChoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ protected function renderMainContent()
$i++;
if ($i == $this->maxShowClients + 1) {
// Add more button
echo Html::a('<i class="fa fa-angle-double-down" aria-hidden="true"></i>', '#', ['class' => 'btn btn-default pull-right btn-sxm', 'id' => 'btnAuthChoiceMore']);
echo Html::a('<i class="fa fa-angle-double-down" aria-hidden="true"></i>', '#', ['class' => 'btn btn-default pull-right btn-sxm btn-auth-choice-more']);

// Div contains more auth clients
echo Html::beginTag('div', ['class' => 'authChoiceMore']);
echo Html::beginTag('div', ['class' => 'auth-choice-more-buttons']);
$extraCssClass = 'btn-sm'; // further buttons small
}
$this->clientLink($client, null, ['class' => $extraCssClass]);
Expand Down
6 changes: 3 additions & 3 deletions static/resources/user/authChoice.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@
background-color: #FFF;
}

.authChoiceMore {
.auth-choice-more-buttons {
display:none;
padding-top:6px;
}

.authChoiceMore a {
.auth-choice-more-buttons a {
margin-top:6px !important;
}

.authChoice i {
padding-right:7px;
}

#btnAuthChoiceMore i {
.btn-auth-choice-more i {
padding-right:0px;
}

Expand Down
8 changes: 4 additions & 4 deletions static/resources/user/authChoice.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$("#btnAuthChoiceMore").click(function () {
$("#btnAuthChoiceMore").hide();
$(".authChoiceMore").show();
});
$(document).on('click', '.btn-auth-choice-more', function () {
$('.btn-auth-choice-more').hide();
$('.auth-choice-more-buttons').show();
});

0 comments on commit 36989ea

Please sign in to comment.