mirror of
https://github.com/zitadel/zitadel.git
synced 2025-04-22 12:51:31 +00:00
fix(console): only show verified emails and phonenumbers as loginoptions (#5073)
* fix: only show verified emails and phonenumbers as loginoptions * rm submodules
This commit is contained in:
parent
a36fdf8fe6
commit
b0ce17c5e8
@ -39,10 +39,18 @@ export class InfoRowComponent {
|
|||||||
let email: string = '';
|
let email: string = '';
|
||||||
let phone: string = '';
|
let phone: string = '';
|
||||||
if (this.loginPolicy) {
|
if (this.loginPolicy) {
|
||||||
if (!this.loginPolicy?.disableLoginWithEmail && this.user.human?.email?.email) {
|
if (
|
||||||
|
!this.loginPolicy?.disableLoginWithEmail &&
|
||||||
|
this.user.human?.email?.email &&
|
||||||
|
this.user.human.email.isEmailVerified
|
||||||
|
) {
|
||||||
email = this.user.human?.email?.email;
|
email = this.user.human?.email?.email;
|
||||||
}
|
}
|
||||||
if (!this.loginPolicy?.disableLoginWithPhone && this.user.human?.phone?.phone) {
|
if (
|
||||||
|
!this.loginPolicy?.disableLoginWithPhone &&
|
||||||
|
this.user.human?.phone?.phone &&
|
||||||
|
this.user.human.phone.isPhoneVerified
|
||||||
|
) {
|
||||||
phone = this.user.human?.phone?.phone;
|
phone = this.user.human?.phone?.phone;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user