Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

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 [% ^ * `_ = +\]\ [{}:;\\ |:;" /? >.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report