[New] Also set authToken as authorization header when resetting
This commit is contained in:
parent
06a6c398f6
commit
ba525aecf9
|
@ -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",
|
||||||
|
|
|
@ -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)))
|
||||||
|
|
Loading…
Reference in New Issue