make password-suggestion as next-to like we always do
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -59,13 +59,16 @@ return [
|
|||||||
'label' => lng('login.password'),
|
'label' => lng('login.password'),
|
||||||
'type' => 'password',
|
'type' => 'password',
|
||||||
'autocomplete' => 'off',
|
'autocomplete' => 'off',
|
||||||
'mandatory' => true
|
'mandatory' => true,
|
||||||
],
|
'next_to' => [
|
||||||
'ftp_password_suggestion' => [
|
'ftp_password_suggestion' => [
|
||||||
'label' => lng('customer.generated_pwd'),
|
'next_to_prefix' => lng('customer.generated_pwd') . ':',
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'visible' => (Settings::Get('panel.password_regex') == ''),
|
'visible' => (Settings::Get('panel.password_regex') == ''),
|
||||||
'value' => Crypt::generatePassword()
|
'value' => Crypt::generatePassword(),
|
||||||
|
'readonly' => true
|
||||||
|
]
|
||||||
|
]
|
||||||
],
|
],
|
||||||
'sendinfomail' => [
|
'sendinfomail' => [
|
||||||
'label' => lng('customer.sendinfomail'),
|
'label' => lng('customer.sendinfomail'),
|
||||||
|
|||||||
@@ -51,13 +51,16 @@ return [
|
|||||||
'label' => lng('login.password'),
|
'label' => lng('login.password'),
|
||||||
'desc' => lng('ftp.editpassdescription'),
|
'desc' => lng('ftp.editpassdescription'),
|
||||||
'type' => 'password',
|
'type' => 'password',
|
||||||
'autocomplete' => 'off'
|
'autocomplete' => 'off',
|
||||||
],
|
'next_to' => [
|
||||||
'ftp_password_suggestion' => [
|
'ftp_password_suggestion' => [
|
||||||
'label' => lng('customer.generated_pwd'),
|
'next_to_prefix' => lng('customer.generated_pwd') . ':',
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'visible' => (Settings::Get('panel.password_regex') == ''),
|
'visible' => (Settings::Get('panel.password_regex') == ''),
|
||||||
'value' => Crypt::generatePassword()
|
'value' => Crypt::generatePassword(),
|
||||||
|
'readonly' => true
|
||||||
|
]
|
||||||
|
]
|
||||||
],
|
],
|
||||||
'shell' => [
|
'shell' => [
|
||||||
'visible' => Settings::Get('system.allow_customer_shell') == '1',
|
'visible' => Settings::Get('system.allow_customer_shell') == '1',
|
||||||
|
|||||||
Reference in New Issue
Block a user