# generated by datamodel-codegen:
#   filename:  configuration/loginConfiguration.json
#   timestamp: 2022-10-04T14:49:18+00:00

from __future__ import annotations

from typing import Optional

from pydantic import BaseModel, Extra, Field


class LoginConfiguration(BaseModel):
    class Config:
        extra = Extra.forbid

    maxLoginFailAttempts: Optional[int] = Field(
        3, description='Failed Login Attempts allowed for user.'
    )
    accessBlockTime: Optional[int] = Field(
        600,
        description='Access Block time for user on exceeding failed attempts(in seconds)',
    )
