[New] Allow to pass password-encoding which is sent with the request
This commit is contained in:
parent
b776398208
commit
9c8d34a076
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "strolch-wc-auth",
|
"name": "strolch-wc-auth",
|
||||||
"description": "Strolch WebComponent Auth",
|
"description": "Strolch WebComponent Auth",
|
||||||
"version": "0.6.8",
|
"version": "0.7.0",
|
||||||
"authors": ["Robert von Burg"],
|
"authors": ["Robert von Burg"],
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"strolch",
|
"strolch",
|
||||||
|
|
|
@ -200,6 +200,9 @@
|
||||||
type: String,
|
type: String,
|
||||||
value: './locales.json'
|
value: './locales.json'
|
||||||
},
|
},
|
||||||
|
passwordEncoding: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
|
||||||
appTitle: {
|
appTitle: {
|
||||||
type: String
|
type: String
|
||||||
|
@ -314,7 +317,8 @@
|
||||||
this.dlgTitle = this.localize('authenticationFailed');
|
this.dlgTitle = this.localize('authenticationFailed');
|
||||||
this.$.ajaxAuth.body = {
|
this.$.ajaxAuth.body = {
|
||||||
'username': this.username,
|
'username': this.username,
|
||||||
'password': btoa(this.password)
|
'password': btoa(this.password),
|
||||||
|
'encoding': this.passwordEncoding
|
||||||
};
|
};
|
||||||
this.$.ajaxAuth.url = this.basePath + 'rest/strolch/authentication';
|
this.$.ajaxAuth.url = this.basePath + 'rest/strolch/authentication';
|
||||||
this.$.ajaxAuth.method = 'POST';
|
this.$.ajaxAuth.method = 'POST';
|
||||||
|
@ -339,7 +343,7 @@
|
||||||
this.$.authForm.hidden = false;
|
this.$.authForm.hidden = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
_cancelReset : function() {
|
_cancelReset: function () {
|
||||||
this._hideAll();
|
this._hideAll();
|
||||||
this.$.authForm.hidden = false;
|
this.$.authForm.hidden = false;
|
||||||
},
|
},
|
||||||
|
@ -415,7 +419,8 @@
|
||||||
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.method = 'PUT';
|
this.$.ajaxAuth.method = 'PUT';
|
||||||
this.$.ajaxAuth.body = {
|
this.$.ajaxAuth.body = {
|
||||||
'password': btoa(this.password1)
|
'password': btoa(this.password1),
|
||||||
|
'encoding': this.passwordEncoding
|
||||||
};
|
};
|
||||||
this.$.ajaxAuth.generateRequest();
|
this.$.ajaxAuth.generateRequest();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue