Skip to content

Commit 31fb4a1

Browse files
committed
Adding redirect and flash on email sent
1 parent 04b6ffa commit 31fb4a1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Controller/UsersController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,8 @@ public function resend_verification() {
492492
try {
493493
if ($this->{$this->modelClass}->checkEmailVerification($this->request->data)) {
494494
$this->_sendVerificationEmail($this->{$this->modelClass}->data);
495+
$this->Session->setFlash(__d('users', 'The email was resent. Please check your inbox.'));
496+
$this->redirect('login');
495497
} else {
496498
$this->Session->setFlash(__d('users', 'The email could not be sent. Please check errors.'));
497499
}

0 commit comments

Comments
 (0)