# generated by datamodel-codegen:
#   filename:  configuration/loginConfiguration.json
#   timestamp: 2022-10-03T15:16:21+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)',
    )
