Skip to content

Commit fe49b28

Browse files
authored
WEB-430: Fix Dead “Forgot Password” Button and Replace TODO Handlers
- 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
1 parent fb2d065 commit fe49b28

File tree

3 files changed

+0
-20
lines changed

3 files changed

+0
-20
lines changed

src/app/login/login-form/login-form.component.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,6 @@
4444
{{ 'labels.buttons.Login' | translate }}
4545
<mat-spinner [diameter]="20" *ngIf="loading"></mat-spinner>
4646
</button>
47-
48-
<button
49-
type="button"
50-
mat-button
51-
class="login-button flex-align-center"
52-
(click)="forgotPassword()"
53-
[disabled]="loading"
54-
>
55-
{{ 'labels.links.Forgot Password?' | translate }}
56-
</button>
5747
</form>
5848
</div>
5949

src/app/login/login-form/login-form.component.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,22 +106,13 @@ export class LoginFormComponent implements OnInit {
106106
*
107107
* Changes the input type between 'password' and 'text'.
108108
*/
109-
110109
togglePasswordVisibility() {
111110
this.passwordInputType = this.passwordInputType === 'password' ? 'text' : 'password';
112111
}
113112

114-
/**
115-
* TODO: Decision to be taken on providing this feature.
116-
*/
117-
forgotPassword() {
118-
console.log('Forgot Password feature currently unavailable.');
119-
}
120-
121113
/**
122114
* Creates login form with validation rules.
123115
*/
124-
125116
private createLoginForm() {
126117
this.loginForm = this.formBuilder.group({
127118
username: [

src/app/login/login.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ <h1 class="mat-display-1 cover-title">{{ 'APP_NAME' | translate }}</h1>
6161
Login
6262
Reset Password
6363
Two Factor Authentication
64-
Forgot Password (TODO: Decision to be taken on providing this feature.)
6564
-->
6665
<mifosx-login-form *ngIf="!resetPassword && !twoFactorAuthenticationRequired"></mifosx-login-form>
6766

0 commit comments

Comments
 (0)