From e63b497d66c4b097970f1eac03a0ec15fb52704c Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Fri, 7 Feb 2025 11:53:58 +0100 Subject: [PATCH] Add documentation --- apps/web/src/app/auth/settings/change-password.component.ts | 2 +- .../key-management/key-rotation/user-key-rotation.service.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/web/src/app/auth/settings/change-password.component.ts b/apps/web/src/app/auth/settings/change-password.component.ts index ee1232010aa..9f04190fcc4 100644 --- a/apps/web/src/app/auth/settings/change-password.component.ts +++ b/apps/web/src/app/auth/settings/change-password.component.ts @@ -156,7 +156,7 @@ export class ChangePasswordComponent title: this.i18nService.t("errorOccurred"), message: this.i18nService.t("masterPasswordRequired"), }); - return false; + return; } this.loading = true; diff --git a/apps/web/src/app/key-management/key-rotation/user-key-rotation.service.ts b/apps/web/src/app/key-management/key-rotation/user-key-rotation.service.ts index d561b0526fd..222408815cc 100644 --- a/apps/web/src/app/key-management/key-rotation/user-key-rotation.service.ts +++ b/apps/web/src/app/key-management/key-rotation/user-key-rotation.service.ts @@ -59,7 +59,10 @@ export class UserKeyRotationService { /** * Creates a new user key and re-encrypts all required data with the it. - * @param masterPassword current master password (used for validation) + * @param oldMasterPassword: The current master password + * @param newMasterPassword: The new master password + * @param user: The user account + * @param newMasterPasswordHint: The hint for the new master password */ async rotateUserKeyMasterPasswordAndEncryptedData( oldMasterPassword: string,