Skip to content

Commit ed46585

Browse files
committed
Add CSRF form fields to the password reset forms
1 parent acf8328 commit ed46585

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

views/resetPassword.pug

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ extends layouts/common.pug
33
block content
44
form#loginForm(action=submitUrl || "/reset-password", method="POST")
55
input(type="hidden", name="method", value=method)
6+
input(type="hidden", name="_csrf", value=csrfToken)
67
if (method === "username")
78
p #{ t("resetPassword_usernameInputMessage") }
89
.form-group

views/resetPasswordForm.pug

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ block content
88
input(type="hidden", name="nonce", value=nonce)
99
input(type="hidden", name="expires", value=expires)
1010
input(type="hidden", name="signature", value=signature)
11+
input(type="hidden", name="_csrf", value=csrfToken)
1112
.form-group
1213
label.password1Label(for="password1") #{ t("resetPassword_password1Label") }
1314
input#password1.input(

0 commit comments

Comments
 (0)