Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proper Error raise in Reauthentication Form #17681

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
70b4da3
WIP
dakshbhayana11811137 Feb 19, 2025
773fedc
Replacing Fixtures with Constants
dakshbhayana11811137 Feb 20, 2025
2ccb5bf
Replacing Fixtures with Constants
dakshbhayana11811137 Feb 20, 2025
d098d3e
Reformat and Linting
dakshbhayana11811137 Feb 20, 2025
a12c27c
Merge branch 'main' into main
Daksh2000 Feb 20, 2025
b150dfc
Reformat constants file
dakshbhayana11811137 Feb 20, 2025
2cbbf94
Test Case Fix
dakshbhayana11811137 Feb 20, 2025
3f37f99
Merge remote-tracking branch 'refs/remotes/origin/main'
dakshbhayana11811137 Feb 20, 2025
143eec9
Workflows Fix
dakshbhayana11811137 Feb 20, 2025
0dcca75
Merge branch 'main' into main
Daksh2000 Feb 22, 2025
2e6df31
Removed fixtures and added comments to constants
dakshbhayana11811137 Feb 23, 2025
6880f29
Merge remote-tracking branch 'refs/remotes/origin/main'
dakshbhayana11811137 Feb 23, 2025
6cfdee7
Remaining Test Case Fix
dakshbhayana11811137 Feb 24, 2025
3956b92
Merge branch 'main' into main
miketheman Feb 25, 2025
7742919
Proper Error raise in Reauthentication Form
dakshbhayana11811137 Feb 28, 2025
06508d1
Merge remote-tracking branch 'refs/remotes/origin/main'
dakshbhayana11811137 Feb 28, 2025
8cdaeb6
Pull from main
dakshbhayana11811137 Feb 28, 2025
f55f339
Proper Error raise in Reauthentication Form
dakshbhayana11811137 Feb 28, 2025
9a8ce0f
Merge branch 'main' into dev_test
Daksh2000 Mar 9, 2025
344784f
Merge branch 'pypi:main' into main
Daksh2000 Mar 18, 2025
14f6547
WIP: Ran make translations
dakshbhayana11811137 Mar 19, 2025
dfcdab7
Merge branch 'pypi:main' into main
Daksh2000 Mar 19, 2025
d23a701
WIP: Ran make translations
dakshbhayana11811137 Mar 19, 2025
e7918ad
WIP: Ran make translations
dakshbhayana11811137 Mar 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Proper Error raise in Reauthentication Form
dakshbhayana11811137 committed Feb 28, 2025

Verified

This commit was signed with the committer’s verified signature.
commit f55f3391daad9a4601ba6d95141e225e0c02eb05
6 changes: 5 additions & 1 deletion warehouse/accounts/views.py
Original file line number Diff line number Diff line change
@@ -1500,6 +1500,7 @@ def profile_public_email(user, request):

@view_config(
route_name="accounts.reauthenticate",
renderer="re-auth.html",
uses_session=True,
require_csrf=True,
require_methods=False,
@@ -1542,8 +1543,11 @@ def reauthenticate(request, _form_class=ReAuthenticateForm):
request.session.record_password_timestamp(
user_service.get_password_timestamp(request.user.id)
)
return resp

return resp
return {
"form": form,
}


@view_defaults(