当前位置:网站首页>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

边栏推荐
- Vs2019 configuration opencv3 detailed graphic tutorial and implementation of test code
- 【点云处理之论文狂读前沿版8】—— Pointview-GCN: 3D Shape Classification With Multi-View Point Clouds
- LeetCode 57. 插入区间
- What are the stages of traditional enterprise digital transformation?
- 数字化管理中台+低代码,JNPF开启企业数字化转型的新引擎
- Memory search acwing 901 skiing
- Complex character + number pyramid
- Wonderful review | i/o extended 2022 activity dry goods sharing
- We have a common name, XX Gong
- 【点云处理之论文狂读经典版11】—— Mining Point Cloud Local Structures by Kernel Correlation and Graph Pooling
猜你喜欢

Tree DP acwing 285 A dance without a boss

精彩回顾|I/O Extended 2022 活动干货分享

传统办公模式的“助推器”,搭建OA办公系统,原来就这么简单!
![[point cloud processing paper crazy reading frontier version 10] - mvtn: multi view transformation network for 3D shape recognition](/img/94/2ab1feb252dc84c2b4fcad50a0803f.png)
[point cloud processing paper crazy reading frontier version 10] - mvtn: multi view transformation network for 3D shape recognition

State compression DP acwing 291 Mondrian's dream

LeetCode 57. 插入区间

LeetCode 532. 数组中的 k-diff 数对

干货!零售业智能化管理会遇到哪些问题?看懂这篇文章就够了

AcWing 787. Merge sort (template)

LeetCode 75. Color classification
随机推荐
The method of replacing the newline character '\n' of a file with a space in the shell
[point cloud processing paper crazy reading classic version 10] - pointcnn: revolution on x-transformed points
LeetCode 508. 出现次数最多的子树元素和
Gaussian elimination acwing 883 Gauss elimination for solving linear equations
Convert video to GIF
Slice and index of array with data type
【点云处理之论文狂读经典版9】—— Pointwise Convolutional Neural Networks
【点云处理之论文狂读经典版14】—— Dynamic Graph CNN for Learning on Point Clouds
How to check whether the disk is in guid format (GPT) or MBR format? Judge whether UEFI mode starts or legacy mode starts?
createjs easeljs
Sword finger offer II 029 Sorted circular linked list
【点云处理之论文狂读前沿版8】—— Pointview-GCN: 3D Shape Classification With Multi-View Point Clouds
剑指 Offer II 091. 粉刷房子
高斯消元 AcWing 883. 高斯消元解线性方程组
Digital statistics DP acwing 338 Counting problem
The difference between if -n and -z in shell
Find the combination number acwing 886 Find the combination number II
AcWing 788. 逆序对的数量
[point cloud processing paper crazy reading frontier version 10] - mvtn: multi view transformation network for 3D shape recognition
LeetCode 75. Color classification