blob: b8830e38559eaaca2f9f5f484c76ee101448a11a (
plain)
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
|
[%
IF forgotten;
title = loc('Forgot password');
ELSIF expired_password;
title = loc('Password expired');
ELSE;
title = loc('Create an account');
END;
INCLUDE 'header.html', bodyclass='authpage' %]
<h1>
[% title %]
[% IF NOT expired_password %]
<small>
[% tprintf(loc('or <a href="%s">sign in</a>'), '/auth') %]
</small>
[% END %]
</h1>
[% IF forgotten %]
<p>
[% IF c.config.SMS_AUTHENTICATION %]
[% loc('Sign in by email or text, providing a new password. When you click the link in your email or enter the SMS authentication code, your password will be updated.') %]</p>
[% ELSE %]
[% loc('Sign in by email instead, providing a new password. When you click the link in your email, your password will be updated.') %]
[% END %]
</p>
[% ELSIF expired_password %]
<p>
<a href="/auth/sign_out">[% loc('Sign out') %]</a>
</p>
<p>
[% loc('Your password has expired, please create a new one below. When you click the link in your email, your password will be updated.') %]
</p>
[% END %]
<form action="/auth/[% expired_password ? 'expired' : forgotten ? 'forgot' : 'create' %]" method="post" name="general_auth" class="validate">
<fieldset>
<input type="hidden" name="r" value="[% c.req.params.r | html %]">
[% IF NOT expired_password %]
[% loc_username_error = INCLUDE 'auth/_username_error.html' default='email' %]
[% IF c.config.SMS_AUTHENTICATION %]
[% SET username_label = loc('Your email or mobile') %]
[% ELSE %]
[% SET username_label = loc('Your email') %]
[% END %]
<label class="n" for="username">[% username_label %]</label>
[% IF loc_username_error %]
<div class="form-error">[% loc_username_error %]</div>
[% END %]
<input type="text" class="form-control required" id="username" name="username" value="[% username | html %]" autofocus autocomplete="username">
[% END %]
[% IF field_errors.password_register %]
<p class='form-error'>[% field_errors.password_register %]</p>
[% END %]
<label for="password_register">[% forgotten ? loc('New password:') : loc('Your password') %]</label>
<div class="general-notes">
<p>[% tprintf(loc('Your password should include %d or more characters.'), c.cobrand.password_minimum_length) %]</p>
</div>
<div class="form-txt-submit-box">
<input class="required form-control js-password-validate" type="password" name="password_register" id="password_register" value="" autocomplete="new-password">
<input class="green-btn" type="submit" name="sign_in_by_code" value="[% expired_password ? loc('Reset') : loc('Sign in') %]">
</div>
</fieldset>
</form>
[% INCLUDE 'footer.html' %]
|