care.emr.api.otp_viewsets.login module

rand_pass(size)
class OTPLoginRequestSpec(*, phone_number: str)

Bases: BaseModel

phone_number: str
classmethod validate_phone_number(value)
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class OTPLoginSpec(*, phone_number: str, otp: Annotated[str, MinLen(min_length=5), MaxLen(max_length=5)])

Bases: OTPLoginRequestSpec

otp: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class OTPLoginView(**kwargs)

Bases: EMRBaseViewSet

authentication_classes = []
permission_classes = []
send(request)
login(request)