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
This commit is contained in:
@@ -44,16 +44,6 @@
|
||||
{{ 'labels.buttons.Login' | translate }}
|
||||
<mat-spinner [diameter]="20" *ngIf="loading"></mat-spinner>
|
||||
</button>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
mat-button
|
||||
class="login-button flex-align-center"
|
||||
(click)="forgotPassword()"
|
||||
[disabled]="loading"
|
||||
>
|
||||
{{ 'labels.links.Forgot Password?' | translate }}
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -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: [
|
||||
|
||||
@@ -61,7 +61,6 @@
|
||||
Login
|
||||
Reset Password
|
||||
Two Factor Authentication
|
||||
Forgot Password (TODO: Decision to be taken on providing this feature.)
|
||||
-->
|
||||
<mifosx-login-form *ngIf="!resetPassword && !twoFactorAuthenticationRequired"></mifosx-login-form>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user