| 1 |
<?php |
| 2 |
/** |
| 3 |
* Outputs the reset password form allowing users to reset their password |
| 4 |
* |
| 5 |
* This template can be overridden by copying it to yourtheme/propertyhive/account/reset-password-form.php. |
| 6 |
* |
| 7 |
* @author PropertyHive |
| 8 |
* @package PropertyHive/Templates |
| 9 |
* @version 1.0.0 |
| 10 |
*/ |
| 11 |
|
| 12 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 13 |
?> |
| 14 |
|
| 15 |
<form name="ph_reset_password_form" class="propertyhive-form reset-password-form" action="" method="post"> |
| 16 |
|
| 17 |
<p><?php echo __( 'Enter a new password below.', 'propertyhive' ); ?></p> |
| 18 |
|
| 19 |
<div id="resetPasswordError" style="display:none;" class="alert alert-danger alert-box"> |
| 20 |
<?php echo esc_html(__( 'The passwords entered must match', 'propertyhive' )); ?> |
| 21 |
</div> |
| 22 |
|
| 23 |
<div id="resetPasswordSuccess" style="display:none;" class="alert alert-success"> |
| 24 |
<?php echo esc_html(__( 'Success. Your password has been changed successfully. You can now login with your new password.', 'propertyhive' )); ?><br> |
| 25 |
<a href="<?php echo esc_url(get_permalink( get_option( 'propertyhive_applicant_login_page_id', '' ) )); ?>">Login</a> |
| 26 |
</div> |
| 27 |
|
| 28 |
<?php |
| 29 |
do_action( 'propertyhive_reset_password_form_start' ); |
| 30 |
|
| 31 |
ph_form_field( 'password_1', |
| 32 |
array( |
| 33 |
'type' => 'password', |
| 34 |
'label' => __( 'New Password', 'propertyhive' ), |
| 35 |
'required' => true |
| 36 |
) |
| 37 |
); |
| 38 |
|
| 39 |
ph_form_field( 'password_2', |
| 40 |
array( |
| 41 |
'type' => 'password', |
| 42 |
'label' => __( 'Re-enter Password', 'propertyhive' ), |
| 43 |
'required' => true |
| 44 |
) |
| 45 |
); |
| 46 |
|
| 47 |
do_action( 'propertyhive_reset_password_form' ); |
| 48 |
?> |
| 49 |
|
| 50 |
<input type="hidden" name="reset_key" value="<?php echo esc_attr( $args['reset_key'] ); ?>" /> |
| 51 |
<input type="hidden" name="reset_login" value="<?php echo esc_attr( $args['reset_login'] ); ?>" /> |
| 52 |
|
| 53 |
<input type="submit" value="<?php echo esc_attr(__( 'Reset Password', 'propertyhive' )); ?>"> |
| 54 |
|
| 55 |
<?php do_action( 'propertyhive_reset_password_form_end' ); ?> |
| 56 |
|
| 57 |
</form> |