mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-06 09:31:35 -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
|
@ -6,6 +6,8 @@
|
|||
import { IsString } from 'class-validator';
|
||||
|
||||
export class UpdatePasswordDto {
|
||||
@IsString()
|
||||
currentPassword: string;
|
||||
@IsString()
|
||||
newPassword: string;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue