-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix(csrf): Send csrf token for the
/change-password
path (#535)
* Fix(csrf): Send csrf token for the `/change-password` path Signed-off-by: Kaung Zin Hein <[email protected]> * Fix(csrf): Attach csrf-token to the HTML form Signed-off-by: Kaung Zin Hein <[email protected]> --------- Signed-off-by: Kaung Zin Hein <[email protected]>
- Loading branch information
1 parent
069e270
commit 683d489
Showing
3 changed files
with
6 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import { render } from '../../templates.js'; | ||
|
||
export function changePasswordForm(msg: string, error: string) { | ||
export function changePasswordForm(msg: string, error: string, csrfToken: string) { | ||
|
||
return render('changepassword', { | ||
title: 'Change Password', | ||
msg: msg, | ||
error: error, | ||
action: '/change-password', | ||
csrfToken: csrfToken, | ||
}); | ||
|
||
} |
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