From d8372ede61133c9b8f363592c86cde5c67dcfc4c Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 9 Mar 2023 18:38:11 +0100 Subject: [PATCH] Rimosso pulsante generazione password in fase di login --- index.php | 2 +- src/HTMLBuilder/Handler/DefaultHandler.php | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index aff8b1979..e0bc8310d 100755 --- a/index.php +++ b/index.php @@ -158,7 +158,7 @@ if (isset($username)) { echo ' required> - {[ "type": "password", "name": "password", "autocomplete": "current-password", "placeholder": "'.tr('Password').'", "icon-before": "" ]} + {[ "type": "password", "name": "password", "autocomplete": "current-password", "placeholder": "'.tr('Password').'", "icon-before": "", "extra": "no-generate-pwd" ]}
'.tr('Password dimenticata?').' diff --git a/src/HTMLBuilder/Handler/DefaultHandler.php b/src/HTMLBuilder/Handler/DefaultHandler.php index 5e1f26e71..af4c2e155 100755 --- a/src/HTMLBuilder/Handler/DefaultHandler.php +++ b/src/HTMLBuilder/Handler/DefaultHandler.php @@ -101,7 +101,10 @@ class DefaultHandler implements HandlerInterface */ protected function password(&$values, &$extras) { - $values['icon-after'] = ' | '; + if (empty(intval($extras))){ + $values['icon-after'] = ' | '; + } + $values['icon-after'] .= ''; $result = '