From 66f8af2c3edcd2aedd2042b44edbf7f4e52672d1 Mon Sep 17 00:00:00 2001 Message-Id: <66f8af2c3edcd2aedd2042b44edbf7f4e52672d1.1549899110.git.hahn@univention.de> From: Philipp Hahn Date: Mon, 11 Feb 2019 15:45:00 +0100 Subject: [PATCH] Bug #46198 UMC: Fix password auto-fill Organization: Univention GmbH, Bremen, Germany --- .../univention-management-console/www/login/index.html | 10 +++++----- .../univention-management-console/www/login/login.html | 4 ++-- management/univention-web/js/widgets/PasswordBox.js | 14 ++++++++++---- .../themes/univention/core/loginuserpass.php | 4 ++-- 4 files changed, 19 insertions(+), 13 deletions(-) diff --git a/management/univention-management-console/www/login/index.html b/management/univention-management-console/www/login/index.html index 0776692415..29b9b1b6f5 100644 --- a/management/univention-management-console/www/login/index.html +++ b/management/univention-management-console/www/login/index.html @@ -29,25 +29,25 @@
diff --git a/management/univention-management-console/www/login/login.html b/management/univention-management-console/www/login/login.html index 0cf7157924..a8bc9cc0c0 100644 --- a/management/univention-management-console/www/login/login.html +++ b/management/univention-management-console/www/login/login.html @@ -11,10 +11,10 @@
diff --git a/management/univention-web/js/widgets/PasswordBox.js b/management/univention-web/js/widgets/PasswordBox.js index 63d4b7fbb4..0bebc5d28f 100644 --- a/management/univention-web/js/widgets/PasswordBox.js +++ b/management/univention-web/js/widgets/PasswordBox.js @@ -30,12 +30,18 @@ define([ "dojo/_base/declare", + "dojo/dom-attr", "umc/widgets/TextBox", "umc/widgets/_FormWidgetMixin" -], function(declare, TextBox, _FormWidgetMixin) { +], function(declare, domAttr, TextBox, _FormWidgetMixin) { return declare("umc.widgets.PasswordBox", [ TextBox, _FormWidgetMixin ], { - type: 'password' + type: 'password', + buildRendering: function() { + this.inherited(arguments); + domAttr.set(this, 'autocomplete', 'new-password'); + }, + postCreate: function() { + this.inherited(arguments); + } }); }); - - diff --git a/saml/univention-saml/simplesamlphp-modules/univentiontheme/themes/univention/core/loginuserpass.php b/saml/univention-saml/simplesamlphp-modules/univentiontheme/themes/univention/core/loginuserpass.php index 3316bffa38..9d9f894d1c 100644 --- a/saml/univention-saml/simplesamlphp-modules/univentiontheme/themes/univention/core/loginuserpass.php +++ b/saml/univention-saml/simplesamlphp-modules/univentiontheme/themes/univention/core/loginuserpass.php @@ -21,10 +21,10 @@ if (isset($this->data['SPMetadata']['privacypolicy'])) {