From a4defd444f03a4ec6b2bf0a43c3d50bd9084db97 Mon Sep 17 00:00:00 2001 From: Anvay Date: Sun, 23 Nov 2025 17:56:04 +0530 Subject: [PATCH] fix: Remove unimplemented forgot password feature - Remove 'Forgot Password' button from login form (no backend support) - Remove forgotPassword() method that only logged to console - Remove TODO comment about forgot password decision - Clean up login form layout and method spacing This eliminates dead UI elements and improves UX by not showing features that aren't actually available. The button can be added back when password reset functionality is implemented in the backend. Resolves WEB-430 --- src/app/login/login-form/login-form.component.html | 10 ---------- src/app/login/login-form/login-form.component.ts | 9 --------- src/app/login/login.component.html | 1 - 3 files changed, 20 deletions(-) diff --git a/src/app/login/login-form/login-form.component.html b/src/app/login/login-form/login-form.component.html index 1d108cfd95..c64735fdec 100644 --- a/src/app/login/login-form/login-form.component.html +++ b/src/app/login/login-form/login-form.component.html @@ -44,16 +44,6 @@ {{ 'labels.buttons.Login' | translate }} - - diff --git a/src/app/login/login-form/login-form.component.ts b/src/app/login/login-form/login-form.component.ts index dcf93cae15..04e4762a78 100644 --- a/src/app/login/login-form/login-form.component.ts +++ b/src/app/login/login-form/login-form.component.ts @@ -106,22 +106,13 @@ export class LoginFormComponent implements OnInit { * * Changes the input type between 'password' and 'text'. */ - togglePasswordVisibility() { this.passwordInputType = this.passwordInputType === 'password' ? 'text' : 'password'; } - /** - * TODO: Decision to be taken on providing this feature. - */ - forgotPassword() { - console.log('Forgot Password feature currently unavailable.'); - } - /** * Creates login form with validation rules. */ - private createLoginForm() { this.loginForm = this.formBuilder.group({ username: [ diff --git a/src/app/login/login.component.html b/src/app/login/login.component.html index 03d17513f9..006a18c45b 100644 --- a/src/app/login/login.component.html +++ b/src/app/login/login.component.html @@ -61,7 +61,6 @@

{{ 'APP_NAME' | translate }}

Login Reset Password Two Factor Authentication - Forgot Password (TODO: Decision to be taken on providing this feature.) -->