bugfixes & clean code
This commit is contained in:
parent
874a65d12a
commit
ff59c040f5
6 changed files with 6 additions and 21 deletions
|
|
@ -33,11 +33,6 @@
|
||||||
!isUserEmailValid(authData.mail.toLowerCase())) {
|
!isUserEmailValid(authData.mail.toLowerCase())) {
|
||||||
<p>This is not a valid email format</p>
|
<p>This is not a valid email format</p>
|
||||||
}}
|
}}
|
||||||
<!-- <div *ngIf="errorService.error$ | async as errors">
|
|
||||||
<div *ngIf="errors?.['mail']">
|
|
||||||
<p>{{ errors["mail"] }}</p>
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
</div>
|
</div>
|
||||||
<app-btn-large
|
<app-btn-large
|
||||||
[value]="'Sign Up'"
|
[value]="'Sign Up'"
|
||||||
|
|
|
||||||
|
|
@ -51,5 +51,5 @@ form {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
width: 62%;
|
width: 57%;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -76,9 +76,7 @@ export class ForgotPasswordComponent {
|
||||||
this.errorService.clearError();
|
this.errorService.clearError();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.sendMailSuccess = false;
|
this.sendMailSuccess = false;
|
||||||
const errorMessage =
|
this.errorService.handleError(error);
|
||||||
error instanceof Error ? error.message : 'An unknown error occurred';
|
|
||||||
this.errorService.errorMsg(errorMessage);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -96,9 +94,7 @@ export class ForgotPasswordComponent {
|
||||||
this.queryEmailSuccess = true;
|
this.queryEmailSuccess = true;
|
||||||
this.errorService.clearError();
|
this.errorService.clearError();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const errorMessage =
|
this.errorService.handleError(error);
|
||||||
error instanceof Error ? error.message : 'An unknown error occurred';
|
|
||||||
this.errorService.errorMsg(errorMessage);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,9 +45,7 @@ export class LoginComponent {
|
||||||
this.router.navigate(['/browse/']);
|
this.router.navigate(['/browse/']);
|
||||||
this.errorService.clearError();
|
this.errorService.clearError();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const errorMessage =
|
this.errorService.handleError(error);
|
||||||
error instanceof Error ? error.message : 'An unknown error occurred';
|
|
||||||
this.errorService.errorMsg(errorMessage);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -55,9 +55,7 @@ export class RegisterComponent {
|
||||||
this.registrationSuccess = true;
|
this.registrationSuccess = true;
|
||||||
this.errorService.clearError();
|
this.errorService.clearError();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const errorMessage =
|
this.errorService.handleError(error);
|
||||||
error instanceof Error ? error.message : 'An unknown error occurred';
|
|
||||||
this.errorService.errorMsg(errorMessage);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,9 +45,7 @@ export class VerifyEmailComponent {
|
||||||
this.errorService.clearError();
|
this.errorService.clearError();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.verified = false;
|
this.verified = false;
|
||||||
const errorMessage =
|
this.errorService.handleError(error);
|
||||||
error instanceof Error ? error.message : 'An unknown error occurred';
|
|
||||||
this.errorService.errorMsg(errorMessage);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue