mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
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:
parent
138e29ee64
commit
0fcb165b29
@ -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
|
||||
|
@ -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());
|
||||
});
|
||||
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user