-
Notifications
You must be signed in to change notification settings - Fork 289
Expand file tree
/
Copy pathlogin.php
More file actions
50 lines (48 loc) · 1.96 KB
/
Copy pathlogin.php
File metadata and controls
50 lines (48 loc) · 1.96 KB
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
43
44
45
46
47
48
49
50
<?php
/**
* Copyright 2010 - 2019, Cake Development Corporation (https://www.cakedc.com)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2010 - 2018, Cake Development Corporation (https://www.cakedc.com)
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
use Cake\Core\Configure;
?>
<div class="users form">
<?= $this->Flash->render('auth') ?>
<?= $this->Form->create() ?>
<fieldset>
<legend><?= __d('cake_d_c/users', 'Please enter your username and password') ?></legend>
<?= $this->Form->control('username', ['label' => __d('cake_d_c/users', 'Username'), 'required' => true]) ?>
<?= $this->Form->control('password', ['label' => __d('cake_d_c/users', 'Password'), 'required' => true]) ?>
<?php
if (Configure::read('Users.reCaptcha.login')) {
echo $this->User->addReCaptcha();
}
if (Configure::read('Users.RememberMe.active')) {
echo $this->Form->control(Configure::read('Users.Key.Data.rememberMe'), [
'type' => 'checkbox',
'label' => __d('cake_d_c/users', 'Remember me'),
'checked' => Configure::read('Users.RememberMe.checked')
]);
}
?>
<?php
$registrationActive = Configure::read('Users.Registration.active');
if ($registrationActive) {
echo $this->Html->link(__d('cake_d_c/users', 'Register'), ['action' => 'register']);
}
if (Configure::read('Users.Email.required')) {
if ($registrationActive) {
echo ' | ';
}
echo $this->Html->link(__d('cake_d_c/users', 'Reset Password'), ['action' => 'requestResetPassword']);
}
?>
</fieldset>
<?= implode(' ', $this->User->socialLoginList()); ?>
<?= $this->User->button(__d('cake_d_c/users', 'Login')); ?>
<?= $this->Form->end() ?>
</div>