mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-25 16:52:17 +00:00
fix(login): improve duration undefined check (#10949)
# Which Problems Are Solved In the login we often check if a GRPC Duration is not defined however it can also be set to 0. Using the API it's possible to set the password check lifetime to zero which broke the login v2. # How the Problems Are Solved Also check if the GRPC Duration seconds field is not 0 # Additional Context - May help if the issue here is actually accidentally setting password lifetime check to 0 using the API #10865 Co-authored-by: Max Peintner <[email protected]>
This commit is contained in:
@@ -23,7 +23,7 @@ import { WarnDialogComponent } from '../../warn-dialog/warn-dialog.component';
|
||||
import { PolicyComponentServiceType } from '../policy-component-types.enum';
|
||||
import { LoginMethodComponentType } from './factor-table/factor-table.component';
|
||||
import { map, takeUntil } from 'rxjs/operators';
|
||||
import { LoginPolicyService } from '../../../services/login-policy.service';
|
||||
import { LoginPolicyService } from 'src/app/services/login-policy.service';
|
||||
|
||||
const minValueValidator = (minValue: number) => (control: AbstractControl) => {
|
||||
const value = control.value;
|
||||
|
||||
Reference in New Issue
Block a user