mirror of
https://github.com/immich-app/immich.git
synced 2025-12-05 20:40:29 -08:00
feat: logout sessions on password change (#23188)
* log out ohter sessions on password change * translations * update and add tests * rename event to UserLogoutOtherSessions * fix typo * requested changes * fix tests * fix medium:test * use ValidateBoolean * fix format * dont delete current session id * Update server/src/dtos/auth.dto.ts Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com> * rename event and invalidateOtherSessions * chore: cleanup --------- Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com> Co-authored-by: Jason Rasmussen <jason@rasm.me>
This commit is contained in:
@@ -11477,6 +11477,10 @@
|
||||
},
|
||||
"ChangePasswordDto": {
|
||||
"properties": {
|
||||
"invalidateSessions": {
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"newPassword": {
|
||||
"example": "password",
|
||||
"minLength": 8,
|
||||
|
||||
@@ -561,6 +561,7 @@ export type SignUpDto = {
|
||||
password: string;
|
||||
};
|
||||
export type ChangePasswordDto = {
|
||||
invalidateSessions?: boolean;
|
||||
newPassword: string;
|
||||
password: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user