From b69c30fe10b49fc80b7929dd89647d20bf57404c Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Fri, 22 Mar 2019 09:48:23 +0100 Subject: [PATCH] [Revert] Revert: Allow to pass password-encoding which is sent with the request --- bower.json | 2 +- strolch-wc-auth.html | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/bower.json b/bower.json index 2fb2640..2e71c4e 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "strolch-wc-auth", "description": "Strolch WebComponent Auth", - "version": "0.7.3", + "version": "0.7.4", "authors": ["Robert von Burg"], "keywords": [ "strolch", diff --git a/strolch-wc-auth.html b/strolch-wc-auth.html index 794566f..86da885 100644 --- a/strolch-wc-auth.html +++ b/strolch-wc-auth.html @@ -200,9 +200,6 @@ type: String, value: './locales.json' }, - passwordEncoding: { - type: String - }, appTitle: { type: String }, @@ -316,8 +313,7 @@ this.dlgTitle = this.localize('authenticationFailed'); this.$.ajaxAuth.body = { username: this.username, - password: btoa(unescape(encodeURIComponent(this.password))), - encoding: this.passwordEncoding + password: btoa(unescape(encodeURIComponent(this.password))) }; this.$.ajaxAuth.url = this.basePath + 'rest/strolch/authentication'; this.$.ajaxAuth.method = 'POST'; @@ -418,8 +414,7 @@ this.$.ajaxAuth.url = this.basePath + 'rest/strolch/privilege/users/' + this.username + '/password'; this.$.ajaxAuth.method = 'PUT'; this.$.ajaxAuth.body = { - password: btoa(unescape(encodeURIComponent(this.password1))), - encoding: this.passwordEncoding + password: btoa(unescape(encodeURIComponent(this.password1))) }; this.$.ajaxAuth.generateRequest(); },