mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-16 16:14:43 -04:00
feat(auth): password change requires old password
By checking the "old" password of the user prior to a password change, the password change function is more secured against abuse. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
20b0ded223
commit
277e2fb1ca
4 changed files with 37 additions and 2 deletions
|
@ -114,6 +114,7 @@ describe('Register and Login', () => {
|
|||
.set('Content-Type', 'application/json')
|
||||
.send(
|
||||
JSON.stringify({
|
||||
currentPassword: PASSWORD,
|
||||
newPassword: 'newPassword',
|
||||
}),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue