-
-
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.
fix: only the first password letter was used
- Loading branch information
Showing
4 changed files
with
10 additions
and
10 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 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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
def test_password_reset(testclient, user): | ||
assert not user.check_password("foobarbaz")[0] | ||
hash = build_hash("user", user.preferred_email, user.password[0]) | ||
hash = build_hash("user", user.preferred_email, user.password) | ||
|
||
res = testclient.get("/reset/user/" + hash, status=200) | ||
|
||
|
@@ -27,7 +27,7 @@ def test_password_reset_multiple_emails(testclient, user): | |
user.save() | ||
|
||
assert not user.check_password("foobarbaz")[0] | ||
hash = build_hash("user", "[email protected]", user.password[0]) | ||
hash = build_hash("user", "[email protected]", user.password) | ||
|
||
res = testclient.get("/reset/user/" + hash, status=200) | ||
|
||
|
@@ -55,7 +55,7 @@ def test_password_reset_bad_link(testclient, user): | |
|
||
|
||
def test_password_reset_bad_password(testclient, user): | ||
hash = build_hash("user", user.preferred_email, user.password[0]) | ||
hash = build_hash("user", user.preferred_email, user.password) | ||
|
||
res = testclient.get("/reset/user/" + hash, status=200) | ||
|
||
|