-
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): Attach csrf-token to the HTML form
Signed-off-by: Kaung Zin Hein <[email protected]>
- Loading branch information
1 parent
8e7545d
commit 08dc771
Showing
4 changed files
with
8 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
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
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