-
Notifications
You must be signed in to change notification settings - Fork 988
/
newPassword.php
89 lines (84 loc) · 3.8 KB
/
newPassword.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
/**
* Login Form
*/
// DO NOT REMOVE This is for automated testing to validate we see that page
echo viewHelper::getViewTestTag('login');
?>
<noscript>If you see this you have probably JavaScript deactivated. LimeSurvey does not work without Javascript being
activated in the browser!
</noscript>
<div class="login">
<div class="row main-body">
<div class="col-12 col-xl col-right">
<div class="login-panel">
<h1><?php eT("Administration"); ?></h1>
<p><?php eT("Set password"); ?></p>
<?php
if ($errorExists) { ?>
<span class="text-danger"><?= $errorMsg ?></span><br><br>
<?php
} else {
?>
<!-- Form -->
<?php
echo CHtml::form(['admin/authentication/sa/newPassword'],
'post',
['id' => 'loginform', 'name' => 'loginform']); ?>
<div class="row login-content login-content-form">
<div class="col-12">
<?php
?>
<span>
<label for="password_repeat" class="required" required><?= gT("Password") ?> <span
class="required">*</span></label>
<input name="password" placeholder='********' id="password" class="form-control ls-important-field"
type="password">
</span>
<span>
<label for="password_repeat" class="required" required><?= gT("Repeat password") ?> <span
class="required">*</span></label>
<input name="password_repeat" placeholder='********' id="password_repeat"
class="form-control ls-important-field" type="password">
</span>
<span>
<label class="form-label">
<?= gT('Random password (suggestion):') ?>
</label>
<input type="text" class="form-control" readonly name="random_example_password"
value="<?= htmlspecialchars((string) $randomPassword) ?>"/>
</span>
<input type="hidden" name="validation_key" value="<?= $validationKey ?>">
</div>
</div>
<!-- Buttons -->
<div class="row login-submit login-content">
<div class="col-12">
<p>
<button type="submit" class="btn btn-outline-secondary" name='login_submit'
value='login'><?php
eT('Save'); ?></button>
<br/>
</p>
</div>
</div>
<?php
echo CHtml::endForm();
}
?>
</div>
</div>
<?php echo Yii::app()->getController()->renderPartial('/admin/authentication/sidebar'); ?>
</div>
</div>
<!-- Set focus on user input -->
<script type='text/javascript'>
$(document).ready(function () {
$('#user').focus();
$("#width").val($(window).width());
});
$(window).resize(function () {
$("#width").val($(window).width());
;
});
</script>