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

边栏推荐
- AcWing 785. 快速排序(模板)
- AcWing 785. Quick sort (template)
- 数字化转型中,企业设备管理会出现什么问题?JNPF或将是“最优解”
- cres
- Internet Protocol learning record
- Introduction to the usage of getopts in shell
- LeetCode 57. 插入区间
- 【点云处理之论文狂读经典版11】—— Mining Point Cloud Local Structures by Kernel Correlation and Graph Pooling
- Binary tree sorting (C language, char type)
- 【点云处理之论文狂读经典版12】—— FoldingNet: Point Cloud Auto-encoder via Deep Grid Deformation
猜你喜欢

Sword finger offer II 091 Paint the house

我们有个共同的名字,XX工

【点云处理之论文狂读经典版9】—— Pointwise Convolutional Neural Networks

Mortgage Calculator

How to use Jupiter notebook

Save the drama shortage, programmers' favorite high-score American drama TOP10

What are the stages of traditional enterprise digital transformation?

Vs2019 configuration opencv3 detailed graphic tutorial and implementation of test code

LeetCode 515. Find the maximum value in each tree row

LeetCode 241. 为运算表达式设计优先级
随机推荐
低代码前景可期,JNPF灵活易用,用智能定义新型办公模式
使用dlv分析golang进程cpu占用高问题
Find the combination number acwing 885 Find the combination number I
20220630 learning clock in
【点云处理之论文狂读经典版9】—— Pointwise Convolutional Neural Networks
excel一小时不如JNPF表单3分钟,这样做报表,领导都得点赞!
LeetCode 57. 插入区间
精彩回顾|I/O Extended 2022 活动干货分享
LeetCode 57. Insert interval
【点云处理之论文狂读前沿版13】—— GAPNet: Graph Attention based Point Neural Network for Exploiting Local Feature
What is the difference between sudo apt install and sudo apt -get install?
数字化转型中,企业设备管理会出现什么问题?JNPF或将是“最优解”
Find the combination number acwing 886 Find the combination number II
LeetCode 438. 找到字符串中所有字母异位词
Use the interface colmap interface of openmvs to generate the pose file required by openmvs mvs
Gif remove blank frame frame number adjustment
【点云处理之论文狂读前沿版9】—Advanced Feature Learning on Point Clouds using Multi-resolution Features and Learni
Parameters of convolutional neural network
Solution of 300ms delay of mobile phone
State compression DP acwing 291 Mondrian's dream