This repository has been archived by the owner on Jun 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't send email to unregistered users, hide difference
Fixes #156.
- Loading branch information
Showing
5 changed files
with
17 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -304,8 +304,14 @@ subtest "password recovery" => sub { | |
|
||
ok $user->check_password('P@ssw0rd'), "password is same as before"; | ||
|
||
$t->request_recovery_link_ok('[email protected]'); | ||
my $content_unregistered = $t->response->decoded_content; | ||
|
||
$t->request_recovery_link_ok('[email protected]'); | ||
is $t->response->decoded_content => $content_unregistered, | ||
"content is same for unregistered email addresses"; | ||
|
||
$t->get_ok_email_link_like(qr/reset_password/); | ||
$t->text_contains('verified'); | ||
|
||
$t->submit_form_ok( | ||
|
@@ -344,6 +350,7 @@ subtest "password recovery marks email address verified" => sub { | |
"email_verified IS NULL"; | ||
|
||
$t->request_recovery_link_ok('[email protected]'); | ||
$t->get_ok_email_link_like(qr/reset_password/); | ||
$t->submit_form_ok( { with_fields => { map { $_ => 'sUpEr s3cUr3' } 'password', 'password2' } }, | ||
"submit password reset form" ); | ||
|
||
|