From 3d2c62f1d947efe86ddc81ce4cc32f461eb4671c Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Tue, 23 Feb 2021 12:42:20 +0100 Subject: [PATCH] [Major] Added require password change action --- bower.json | 2 +- strolch-wc-users.html | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/bower.json b/bower.json index 17efe38..0cd2822 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "strolch-wc-inspector", "description": "Strolch WebComponent Inspector", - "version": "0.21.0", + "version": "0.22.0", "authors": ["Robert von Burg"], "keywords": [ "strolch", diff --git a/strolch-wc-users.html b/strolch-wc-users.html index 25d6f91..c4e1b50 100644 --- a/strolch-wc-users.html +++ b/strolch-wc-users.html @@ -198,6 +198,7 @@
+ Require Change Clear Close Save @@ -445,6 +446,22 @@ this.$.ajax.generateRequest(); }, + _requireChange: function (e) { + this.dlgTitle = 'Require Password Change failed'; + this._handleAjaxResponse = function (data) { + this.reload(); + + this.password0 = ''; + this.password1 = ''; + this.$.pwDlg.close(); + }; + + this.$.ajax.url = this.basePath + 'rest/strolch/privilege/users/' + this.user.username + '/password/state'; + this.$.ajax.method = 'PUT'; + this.$.ajax.body = {state: "RequirePasswordChange"}; + this.$.ajax.generateRequest(); + }, + _removeUser: function (e) { var user = e.model.item; if (!confirm('Do you really want to delete user ' + user.username + ': ' + user.firstname + ' ' + user.lastname)) {