当前位置:网站首页>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 12] - foldingnet: point cloud auto encoder via deep grid deformation
- Find the combination number acwing 885 Find the combination number I
- LeetCode 75. Color classification
- 我们有个共同的名字,XX工
- Gif remove blank frame frame number adjustment
- 我們有個共同的名字,XX工
- Binary tree traversal (first order traversal. Output results according to first order, middle order, and last order)
- On the setting of global variable position in C language
- Digital management medium + low code, jnpf opens a new engine for enterprise digital transformation
- The method of replacing the newline character '\n' of a file with a space in the shell
猜你喜欢
LeetCode 508. 出现次数最多的子树元素和
Format - C language project sub file
AcWing 788. 逆序对的数量
LeetCode 871. Minimum refueling times
数字化管理中台+低代码,JNPF开启企业数字化转型的新引擎
Wonderful review | i/o extended 2022 activity dry goods sharing
AcWing 787. 归并排序(模板)
【点云处理之论文狂读经典版12】—— FoldingNet: Point Cloud Auto-encoder via Deep Grid Deformation
[point cloud processing paper crazy reading classic version 10] - pointcnn: revolution on x-transformed points
即时通讯IM,是时代进步的逆流?看看JNPF怎么说
随机推荐
Find the combination number acwing 886 Find the combination number II
剑指 Offer II 091. 粉刷房子
Common penetration test range
[point cloud processing paper crazy reading classic version 8] - o-cnn: octree based revolutionary neural networks for 3D shape analysis
The method of replacing the newline character '\n' of a file with a space in the shell
【点云处理之论文狂读经典版8】—— O-CNN: Octree-based Convolutional Neural Networks for 3D Shape Analysis
Wonderful review | i/o extended 2022 activity dry goods sharing
【点云处理之论文狂读经典版11】—— Mining Point Cloud Local Structures by Kernel Correlation and Graph Pooling
Digital statistics DP acwing 338 Counting problem
Noip 2002 popularity group selection number
Use of sort command in shell
createjs easeljs
LeetCode 535. TinyURL 的加密与解密
即时通讯IM,是时代进步的逆流?看看JNPF怎么说
excel一小时不如JNPF表单3分钟,这样做报表,领导都得点赞!
LeetCode 241. 为运算表达式设计优先级
LeetCode 75. 颜色分类
求组合数 AcWing 885. 求组合数 I
LeetCode 532. 数组中的 k-diff 数对
Excel is not as good as jnpf form for 3 minutes in an hour. Leaders must praise it when making reports like this!