当前位置:网站首页>On February 14, 2022, learn the imitation Niuke project - develop the registration function
On February 14, 2022, learn the imitation Niuke project - develop the registration function
2022-07-03 09:10:00 【weixin_ thirty-seven million six hundred and eighty-two thousan】


It opens at /register, Server return site In the catalog register.html
Change the relative path of the top and bottom 

change index.html That is, the head registration button on the home page , To achieve Click index.html Registration in , You can jump to the registration page 



to header Take the alias , With multiple reuse 
stay register Medium multiplexing index Medium header
Because it's not turned on mysql service , therefore 
Show as white page 
start-up mysql After service , The home page can be displayed normally 
Click Register to enter the registration page 
This replace The role of is 
use index home page ,th Processed relative path 
replace register page , of no avail th Processed relative path , Avoid changing one by one into th Relative path of 
Guide pack 
Configure the domain name , Prepare for sending email 
Util class , Generate random string ,MD5 encryption 
Inject the bean
Handle null values 
Verify whether there are duplicate accounts and mailboxes in the database

Registered account 
Change the registration activation page to TH Relative path of 
Implementation of activation mail , take email Put in context in , Generate url, then url Put in context in , take context Put it in the template , Dynamic generation , After use mailClient Send E-mail 
After that loginController The layer handles the interaction between the front end and the back end 

Handle operate-result.html
Modify the relative path 
Cover header
Modify the relative path 
Dynamic target
modify register.html, Specify the method and path of submission 
The front end gets user Of name
springMVC, From the front end, the username Inject user bean in 
Allied , Add password 
Allied , mailbox 
If registration fails , When returning to the page, I hope the user name and other information originally entered will remain 
A similar pair of passwords 
Allied , Yes, confirm the password 
Allied , Right mailbox 
thus , Registration failure returns register page , Display the originally filled information , Processing is complete .
Here's how to deal with it , Dynamically display error messages

Dynamic display , This account has been registered 
Allied , Dynamic display password has been registered 
Allied , Email registered 
Dynamic processing , No error message will be displayed when the registration is successful 
Dynamic splicing ,from-control There has always been , If usernameMsg Not empty , Back panel is-invalid
Then the bottom , Account already exists ! part 
Allied , Change Password 
Allied , Right mailbox 
To test , Use the niuke account number 
Test mailbox 

Test the registered account




After success, jump back to the home page

Several states of activation 
userservice Inherit the interface 
userservice Activation 
logincontroller from service Accept the result of activation 
Add access to the login page 
Deal with the login page 
Deal with the bottom js
Cover header
To configure index Login path of homepage 
test , You can visit the login page 

because qq Mailbox problem , I clicked before , So it is activated repeatedly 

You can see that the registered account has been put into the database
Change the verification code image of the login page ,

The verification code can be displayed normally

边栏推荐
- [point cloud processing paper crazy reading classic version 9] - pointwise revolutionary neural networks
- LeetCode 535. Encryption and decryption of tinyurl
- 网络安全必会的基础知识
- 【点云处理之论文狂读经典版10】—— PointCNN: Convolution On X-Transformed Points
- In the digital transformation, what problems will occur in enterprise equipment management? Jnpf may be the "optimal solution"
- 使用dlv分析golang进程cpu占用高问题
- Discussion on enterprise informatization construction
- On the setting of global variable position in C language
- AcWing 788. 逆序对的数量
- The method of replacing the newline character '\n' of a file with a space in the shell
猜你喜欢

Complex character + number pyramid

推荐一个 yyds 的低代码开源项目

Facial expression recognition based on pytorch convolution -- graduation project

传统企业数字化转型需要经过哪几个阶段?

LeetCode 438. Find all letter ectopic words in the string

Education informatization has stepped into 2.0. How can jnpf help teachers reduce their burden and improve efficiency?

剑指 Offer II 091. 粉刷房子

状态压缩DP AcWing 91. 最短Hamilton路径

Introduction to the basic application and skills of QT

AcWing 786. Number k
随机推荐
php public private protected
Sword finger offer II 029 Sorted circular linked list
String splicing method in shell
CSDN markdown editor help document
剑指 Offer II 091. 粉刷房子
[advanced feature learning on point clouds using multi resolution features and learning]
LeetCode 75. Color classification
Parameters of convolutional neural network
AcWing 785. Quick sort (template)
求组合数 AcWing 885. 求组合数 I
Discussion on enterprise informatization construction
AcWing 787. 归并排序(模板)
Sword finger offer II 091 Paint the house
excel一小时不如JNPF表单3分钟,这样做报表,领导都得点赞!
数位统计DP AcWing 338. 计数问题
【点云处理之论文狂读经典版11】—— Mining Point Cloud Local Structures by Kernel Correlation and Graph Pooling
What are the stages of traditional enterprise digital transformation?
樹形DP AcWing 285. 沒有上司的舞會
cres
Common DOS commands