Skip to content

Commit f55f339

Browse files
Proper Error raise in Reauthentication Form
1 parent d29cbe9 commit f55f339

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

warehouse/accounts/views.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1500,6 +1500,7 @@ def profile_public_email(user, request):
15001500

15011501
@view_config(
15021502
route_name="accounts.reauthenticate",
1503+
renderer="re-auth.html",
15031504
uses_session=True,
15041505
require_csrf=True,
15051506
require_methods=False,
@@ -1542,8 +1543,11 @@ def reauthenticate(request, _form_class=ReAuthenticateForm):
15421543
request.session.record_password_timestamp(
15431544
user_service.get_password_timestamp(request.user.id)
15441545
)
1546+
return resp
15451547

1546-
return resp
1548+
return {
1549+
"form": form,
1550+
}
15471551

15481552

15491553
@view_defaults(

0 commit comments

Comments
 (0)