Microsoft Auth Remember me checkbox fix (#5578)

* Update humhub.user.login.js

* Update CHANGELOG_DEV.md

* Update CHANGELOG_DEV.md

Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com>
This commit is contained in:
s-tyshchenko 2022-03-02 19:33:09 +02:00 committed by GitHub
parent 138e29ee64
commit 0fcb165b29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -38,3 +38,4 @@
- Enh #4823: Removed CHTML and CActiveForm classes as well as usages (plus refactoring)
- Fix #5449: File - Update info after `setStoredFileContent` and `setStoredFile`
- Enh #5127: LDAP: Reset mapping for single user only
- Fix #5578: Improved `rememberMe` parameter handling for thirdparty auth provider

View File

@ -11,7 +11,12 @@ humhub.module('user.login', function (module, require, $) {
$this.data('originalUrl', original);
}
$this.attr('href', checked ? original + '&rememberMe=1' : original);
var url = new URL(original, window.location.origin);
if(checked) {
url.searchParams.set('rememberMe', 1);
}
$this.attr('href', url.toString());
});
};