-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresetpass-form.php
49 lines (44 loc) · 2.38 KB
/
resetpass-form.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
<?php
/*
If you would like to edit this file, copy it to your current theme's directory and edit it there.
Theme My Login will always look in your theme's directory first, before using this default template.
*/
?>
<div class="card inner-shadow border bg-dark border-light" id="theme-my-login<?php $template->the_instance(); ?>">
<?php $template->the_action_template_message( 'resetpass' ); ?>
<?php $template->the_errors(); ?>
<form name="resetpassform" id="resetpassform<?php $template->the_instance(); ?>" action="<?php $template->the_action_url( 'resetpass', 'login_post' ); ?>" method="post" autocomplete="off">
<h4 class="card-header">Nueva contraseña</h4>
<div class="card-body">
<div class="user-pass1-wrap form-group">
<div>
<label for="pass1"><?php _e( 'New password', 'theme-my-login' ); ?></label>
</div>
<div class="wp-pwd">
<span class="password-input-wrapper">
<input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" name="pass1" id="pass1" class="input form-control" size="20" value="" autocomplete="off" aria-describedby="pass-strength-result" />
</span>
<div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator', 'theme-my-login' ); ?></div>
</div>
</div>
<div class="user-pass2-wrap form-group">
<label for="pass2"><?php _e( 'Confirm new password', 'theme-my-login' ); ?></label>
<input type="password" name="pass2" id="pass2" class="input form-control" size="20" value="" autocomplete="off" />
</div>
<p class="description indicator-hint"><?php echo wp_get_password_hint(); ?></p>
<?php do_action( 'resetpassword_form' ); ?>
</div>
<div class="tml-submit-wrap card-footer">
<input type="submit" class="btn btn-primary" name="wp-submit" id="wp-submit<?php $template->the_instance(); ?>" value="<?php esc_attr_e( 'Reset Password', 'theme-my-login' ); ?>" />
<input type="hidden" id="user_login" value="<?php echo esc_attr( $GLOBALS['rp_login'] ); ?>" autocomplete="off" />
<input type="hidden" name="rp_key" value="<?php echo esc_attr( $GLOBALS['rp_key'] ); ?>" />
<input type="hidden" name="instance" value="<?php $template->the_instance(); ?>" />
<input type="hidden" name="action" value="resetpass" />
</div>
</form>
<?php $template->the_action_links( array(
'login' => false,
'register' => false,
'lostpassword' => false
) ); ?>
</div>