Validators¶
-
django_tasker_account.validators.email(email: str) → str¶ Checks the validity syntax of an email
Parameters: email – email address Returns: email Raise: ValidationError If the incorrect email address
-
django_tasker_account.validators.email_blacklist(email: str) → str¶ Checks the blacklist db an email
Parameters: email – email address Returns: email Raise: ValidationError If the email address is blacklist db
-
django_tasker_account.validators.email_dublicate(email: str) → str¶ Checks the dublicate an email
Parameters: email – email address Returns: email Raise: ValidationError If the email address is dublicate
-
django_tasker_account.validators.email_exists(email: str) → str¶ Checks the not exists an email
Parameters: email – email address Returns: email Raise: ValidationError If the email address is not exists
-
django_tasker_account.validators.mobile_number(number: int) → str¶ Checks the validity of a mobile phone number.
Parameters: number – mobile phone number. Returns: number Raise: ValidationError If the mobile phone number is not valid
-
django_tasker_account.validators.password(password: str) → str¶ Checks the password syntax
Parameters: password – password Returns: password Raise: ValidationError If the password is not correct
-
django_tasker_account.validators.username(username: str) → str¶ Checks the validity of an username.
Parameters: username – User name сhecked. Returns: username Raise: ValidationError If the username is not a regular expression ^[a-z]+[a-z0-9]+[_-]?[a-z0-9]+$
-
django_tasker_account.validators.username_dublicate(username: str) → str¶ Checks the dublicate an username.
Parameters: username – User name сhecked. Returns: username Raise: ValidationError If the username is dublicate