Skip to content

Commit

Permalink
fix(New-UI-Login-SSO): [Auth/PM-18693] LoginComp - fix form validatio…
Browse files Browse the repository at this point in the history
…n not showing up on SSO click (#13601)
  • Loading branch information
JaredSnider-Bitwarden authored Feb 27, 2025
1 parent ec488e4 commit e6aaa65
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions libs/auth/src/angular/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -629,19 +629,20 @@ export class LoginComponent implements OnInit, OnDestroy {
* Handle the SSO button click.
*/
async handleSsoClick() {
// Make sure the email is not empty, for type safety
const email = this.formGroup.value.email;
if (!email) {
this.logService.error("Email is required for SSO");
return;
}

// Make sure the email is valid
const isEmailValid = await this.validateEmail();
if (!isEmailValid) {
return;
}

// Make sure the email is not empty, for type safety
if (!email) {
this.logService.error("Email is required for SSO");
return;
}

// Save the email configuration for the login component
await this.saveEmailSettings();

Expand Down

0 comments on commit e6aaa65

Please sign in to comment.