mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53:34 +00:00
fix(New-UI-Login-SSO): [Auth/PM-18693] LoginComp - fix form validation not showing up on SSO click (#13601)
This commit is contained in:
@@ -629,12 +629,7 @@ export class LoginComponent implements OnInit, OnDestroy {
|
|||||||
* Handle the SSO button click.
|
* Handle the SSO button click.
|
||||||
*/
|
*/
|
||||||
async handleSsoClick() {
|
async handleSsoClick() {
|
||||||
// Make sure the email is not empty, for type safety
|
|
||||||
const email = this.formGroup.value.email;
|
const email = this.formGroup.value.email;
|
||||||
if (!email) {
|
|
||||||
this.logService.error("Email is required for SSO");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Make sure the email is valid
|
// Make sure the email is valid
|
||||||
const isEmailValid = await this.validateEmail();
|
const isEmailValid = await this.validateEmail();
|
||||||
@@ -642,6 +637,12 @@ export class LoginComponent implements OnInit, OnDestroy {
|
|||||||
return;
|
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
|
// Save the email configuration for the login component
|
||||||
await this.saveEmailSettings();
|
await this.saveEmailSettings();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user