[Revert] Revert: Allow to pass password-encoding for password set request
This commit is contained in:
parent
c6870cb332
commit
4a54a006f6
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "strolch-wc-inspector",
|
"name": "strolch-wc-inspector",
|
||||||
"description": "Strolch WebComponent Inspector",
|
"description": "Strolch WebComponent Inspector",
|
||||||
"version": "0.16.2",
|
"version": "0.16.3",
|
||||||
"authors": ["Robert von Burg"],
|
"authors": ["Robert von Burg"],
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"strolch",
|
"strolch",
|
||||||
|
|
|
@ -270,9 +270,6 @@
|
||||||
type: Array,
|
type: Array,
|
||||||
value: []
|
value: []
|
||||||
},
|
},
|
||||||
passwordEncoding: {
|
|
||||||
type: String
|
|
||||||
},
|
|
||||||
searchTerm: {
|
searchTerm: {
|
||||||
type: String,
|
type: String,
|
||||||
observer: 'searchTermChanged'
|
observer: 'searchTermChanged'
|
||||||
|
@ -374,8 +371,7 @@
|
||||||
this.$.ajax.url = this.basePath + 'rest/strolch/privilege/users/' + this.user.username + '/password';
|
this.$.ajax.url = this.basePath + 'rest/strolch/privilege/users/' + this.user.username + '/password';
|
||||||
this.$.ajax.method = 'PUT';
|
this.$.ajax.method = 'PUT';
|
||||||
this.$.ajax.body = {
|
this.$.ajax.body = {
|
||||||
password: btoa(unescape(encodeURIComponent(this.password0))),
|
password: btoa(unescape(encodeURIComponent(this.password0)))
|
||||||
encoding: this.passwordEncoding
|
|
||||||
};
|
};
|
||||||
this.$.ajax.generateRequest();
|
this.$.ajax.generateRequest();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue