-
Notifications
You must be signed in to change notification settings - Fork 0
/
reset-password.twig
59 lines (47 loc) · 2.6 KB
/
reset-password.twig
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
{{ set(this, 'title', 'Reset Password') }}
{% if not _User.isGuest() %}
{% set redir = _Page.setHttpRedirects(
{ '|^/.*|': networkData.defaultBlogUrl ~ '/user/edit-profile', }, false)
%}
{% endif %}
{{this.registerJs('AuthController.resetPassword()')}}
{% set config = _Network.getThemeConfig() %}
<div class="login-page">
<div class="container">
<div class="row c-reset-password">
<div class="col-12 col-lg-7 u-margin-top-40 u-margin-bottom-60 u-mobile-no-margin-top" id="login-social">
<h3 class="">Set your password</h3>
<div class="">
<form id="resetPasswordForm" class="" action="" method="post">
<input type="hidden" name="_csrf" value="{{_AppHelper.getCsrfToken()}}" />
<div class="row">
<div class="col-12 col-md-6 u-margin-top-30">
{{_AppForm.input({type:'password', name: 'password', value: '', id: 'password', class: 'form-control', placeholder: 'New Password'}) | raw }}
</div>
</div>
<div class="row">
<div class="col-12 col-md-6 u-margin-top-20 u-margin-bottom-30">
{{_AppForm.input({type:'password', name: 'verifypassword', value: '', class: 'form-control', placeholder: 'Verify Password'}) | raw }}
</div>
</div>
{% if errors | length > 0 %}
<ul class="c-reset-password__errors">
{% for errorArr in errors %}
{% for error in errorArr %}
<li class="c-reset-password__error">{{error}}</li>
{% endfor %}
{% endfor %}
</ul>
{% endif %}
{{_AppForm.button({type:'submit', name: 'resetPassword', class: 'btn btn-success forget_btn c-button c-button--blue', label:'Submit'}) | raw }}
</form>
</div>
</div>
<div class="col-12 offset-lg-1 col-lg-4">
{% if config['inventory']['adSpace']['hpage'][0] is defined %}
<div class="j-adslot" id="{{config['inventory']['adSpace']['hpage'][0]}}" data-adshape="hpage"></div>
{% endif %}
</div>
</div>
</div>
</div>