[New] Also set authToken as authorization header when resetting

This commit is contained in:
Robert von Burg 2022-02-11 10:48:39 +01:00
parent 06a6c398f6
commit ba525aecf9
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "strolch-wc-auth", "name": "strolch-wc-auth",
"description": "Strolch WebComponent Auth", "description": "Strolch WebComponent Auth",
"version": "0.9.4", "version": "0.9.5",
"authors": ["Robert von Burg"], "authors": ["Robert von Burg"],
"keywords": [ "keywords": [
"strolch", "strolch",

View File

@ -582,6 +582,7 @@
this.dlgTitle = this.localize('resetFailed'); this.dlgTitle = this.localize('resetFailed');
this.$.ajaxAuth.url = this.basePath + 'rest/strolch/privilege/users/' + this.username + '/password'; this.$.ajaxAuth.url = this.basePath + 'rest/strolch/privilege/users/' + this.username + '/password';
this.$.ajaxAuth.headers.authorization = this.authToken;
this.$.ajaxAuth.method = 'PUT'; this.$.ajaxAuth.method = 'PUT';
this.$.ajaxAuth.body = { this.$.ajaxAuth.body = {
password: btoa(unescape(encodeURIComponent(this.password1))) password: btoa(unescape(encodeURIComponent(this.password1)))