Merge branch 'master' of https://github.com/devcode-it/openstamanager
This commit is contained in:
commit
8d3bdcc59b
|
@ -158,7 +158,7 @@ if (isset($username)) {
|
|||
echo ' required>
|
||||
</div>
|
||||
|
||||
{[ "type": "password", "name": "password", "autocomplete": "current-password", "placeholder": "'.tr('Password').'", "icon-before": "<i class=\"fa fa-lock\"></i>" ]}
|
||||
{[ "type": "password", "name": "password", "autocomplete": "current-password", "placeholder": "'.tr('Password').'", "icon-before": "<i class=\"fa fa-lock\"></i>", "extra": "no-generate-pwd" ]}
|
||||
|
||||
<div class="text-right">
|
||||
<small><a href="'.base_path().'/reset.php">'.tr('Password dimenticata?').'</a></small>
|
||||
|
|
|
@ -101,7 +101,10 @@ class DefaultHandler implements HandlerInterface
|
|||
*/
|
||||
protected function password(&$values, &$extras)
|
||||
{
|
||||
$values['icon-after'] = '<i onclick="generatePassword_'.$values['id'].'()" class="clickable fa fa-cog" id="'.$values['id'].'_generate"></i> | <i onclick="togglePassword_'.$values['id'].'()" class="clickable fa" id="'.$values['id'].'_toggle"></i>';
|
||||
if (empty(intval($extras))){
|
||||
$values['icon-after'] = '<i onclick="generatePassword_'.$values['id'].'()" class="clickable fa fa-cog" id="'.$values['id'].'_generate"></i> | ';
|
||||
}
|
||||
$values['icon-after'] .= '<i onclick="togglePassword_'.$values['id'].'()" class="clickable fa" id="'.$values['id'].'_toggle"></i>';
|
||||
|
||||
$result = '
|
||||
<script>
|
||||
|
|
Loading…
Reference in New Issue