Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the registration function of the django project based on hook verification

Shulou Source: shulou.com Published: 2022-06-02 07:24:35 11月11日 Update

In this issue, the editor will bring you about the registration function of django project based on hook verification. The article is rich in content and analyzed and described from a professional point of view. I hope you can get something after reading this article.

Front-end html

Register

{# start of registration #}

Onsubmit= "return false" >

{% csrf_token%}

Type=email

Data-val=true

This mailbox suffix is not supported by data-val-checkemailpostfix=

Incorrect format of data-val-email= mailbox

Data-val-length= email address cannot exceed 120 characters

Data-val-length-max=120

Data-val-regex= email address is incorrect or not supported

Data-val-regex-pattern= "[\ wang #\ $% &'\ *\ +\ -\ / =\ ^ `{\ |} ~.] + @ ([\ w -] +\.) + (com | net | cn | org | me | cc | biz) $"

Data-val-remote= "mailbox" is invalid. "

Data-val-remote-additionalfields=*.Email

Data-val-remote-url=/Account/CheckEmail

Data-val-required=, please enter the email address id=Email

Name=member_email >

Class= "text-danger field-validation-valid" data-valmsg-for=Email

Data-valmsg-replace=true >

phone number

Data-val-maxlength= country code format error data-val-maxlength-max=4

Data-val-regex= country code format error data-val-regex-pattern= ^\ +\ d {1pc3} $

Data-val-required=, please enter the country code id=CountryCode name=CountryCode

Value=+86 >

Placeholder= binds your mobile number type=text

Data-val=true data-val-regex= mobile phone number is wrong.

Data-val-regex-pattern= ^\ d {4pr 13} $

Data-val-remote= "'Mobile phone number' is invalid."

Data-val-remote-additionalfields=*.PhoneNum

Data-val-remote-url=/Account/CheckPhoneNum

Data-val-required=, please enter your mobile phone number id=PhoneNum

Name=member_tel >

Data-valmsg-replace=true >

Class= "text-danger field-validation-valid"

Data-valmsg-for=PhoneNum

Data-valmsg-replace=true >

Login name

Type=text

Data-val=true

Data-val-length= does not meet the requirements, at least 2 characters, up to 30 characters

Data-val-length-max=30 data-val-length-min=2

Data-val-nospace= login user name cannot contain spaces

Data-val-remote= "'login name' is invalid."

Data-val-remote-additionalfields=*.LoginName

Data-val-remote-url=/Account/CheckLoginName

Data-val-required=, please enter the login user name id=LoginName

Name=member_name >

Data-valmsg-replace=true >

Display name

Type=text

Data-val=true

Data-val-length= does not meet the requirements, at least 2 characters, up to 20 characters

Data-val-length-max=20 data-val-length-min=2

Data-val-regex= cannot contain spaces, @,: and, and cannot end with. _

Data-val-regex-pattern= ^ (?!. * [@::\ s]). * [^. _] $

Data-val-remote= "'display name' is invalid."

Data-val-remote-additionalfields=*.DisplayName

Data-val-remote-url=/Account/CheckDisplayName

Data-val-required= Please enter the display name id=DisplayName

Name=member_nickname >

Class= "text-danger field-validation-valid" data-valmsg-for=DisplayName

Data-valmsg-replace=true >

Password

Placeholder= must have at least 8 digits and must contain letters, numbers and special characters

Type=password data-val=true

Data-val-length= does not meet the requirements. The password length requires 8-30 digits.

Data-val-length-max=30

Data-val-length-min=8

Data-val-nospace= password cannot contain spaces

Data-val-regex= passwords must contain a combination of letters, numbers, and special characters

Data-val-regex-pattern= "^ (? =. * [0-9]) (? =. * [a-zA-Z]) (? =. * [^ a-zA-Z0-9]) [- 0-9a Mizi Zhumi [% ^ * `_ = +\]\ [{}:;\\ |:;" /? >.

Tags: Password name mailbox error character mobile phone number format login input hook mobile number user length authentication number user name item code content Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno vpn NVidia MariaDB Shulou Information