-
-
Notifications
You must be signed in to change notification settings - Fork 119
/
form_login.php
executable file
·42 lines (37 loc) · 1.42 KB
/
form_login.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
class formAuthLogin extends cmsForm {
public $show_unsave_notice = false;
public function init() {
return [
'basic' => [
'type' => 'fieldset',
'title' => LANG_AUTHORIZATION,
'childs' => [
new fieldString('login_email', [
'title' => LANG_EMAIL,
'type' => 'email',
'rules' => [
['required'],
['email']
]
]),
new fieldString('login_password', [
'title' => LANG_PASSWORD,
'is_password' => true,
'options' => [
'min_length' => 6,
'max_length' => 72
],
'rules' => [
['required']
]
]),
new fieldCheckbox('remember', [
'title' => '<span class="auth_remember">' . LANG_REMEMBER_ME . '</span>'.
(empty($this->controller->options['disable_restore']) ? ' <a class="auth_restore_link" href="' . href_to('auth', 'restore') . '">' . LANG_FORGOT_PASS . '</a>' : '')
])
]
]
];
}
}