Skip to content

Commit

Permalink
show message to check email for reseting password
Browse files Browse the repository at this point in the history
  • Loading branch information
sapayth committed Feb 5, 2024
1 parent f7f0498 commit 807902a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
4 changes: 4 additions & 0 deletions includes/Free/Simple_Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,10 @@ public function login_form() {
case 'lostpassword':
$checkemail = isset( $getdata['checkemail'] ) ? sanitize_text_field( $getdata['checkemail'] ) : '';

if ( $this->login_errors ) {
wpuf_load_template( 'lost-pass-form.php', $args );
break;
}
if ( 'confirm' === $checkemail ) {
$this->messages[] = __( 'Check your e-mail for the confirmation link.', 'wp-user-frontend' );
}
Expand Down
6 changes: 4 additions & 2 deletions templates/login-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
}
?>

<?php wpuf()->frontend->simple_login->show_errors(); ?>
<?php wpuf()->frontend->simple_login->show_messages(); ?>
<?php
wpuf()->frontend->simple_login->show_errors();
wpuf()->frontend->simple_login->show_messages();
?>

<form name="loginform" class="wpuf-login-form" id="loginform" action="<?php echo esc_attr( $action_url ); ?>" method="post">
<p>
Expand Down
6 changes: 4 additions & 2 deletions templates/lost-pass-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
?>
<div class="login" id="wpuf-login-form">

<?php Simple_Login::init()->show_errors(); ?>
<?php Simple_Login::init()->show_messages(); ?>
<?php
wpuf()->frontend->simple_login->show_errors();
wpuf()->frontend->simple_login->show_messages();
?>

<form name="lostpasswordform" id="lostpasswordform" action="" method="post">
<p>
Expand Down
6 changes: 4 additions & 2 deletions templates/reset-pass-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
?>
<div class="login" id="wpuf-login-form">

<?php Simple_Login::init()->show_errors(); ?>
<?php Simple_Login::init()->show_messages(); ?>
<?php
wpuf()->frontend->simple_login->show_errors();
wpuf()->frontend->simple_login->show_messages();
?>

<form name="resetpasswordform" id="resetpasswordform" action="" method="post">
<p>
Expand Down

0 comments on commit 807902a

Please sign in to comment.