Finish sign api. Optimize code.
This commit is contained in:
@@ -5,7 +5,8 @@ create table if not exists t_user
|
||||
id bigint not null primary key,
|
||||
username varchar(20) not null comment '用户名',
|
||||
password char(70) not null comment '密码',
|
||||
verify varchar(144) null comment '验证信息',
|
||||
verify varchar(144) null comment '验证邮箱',
|
||||
forget varchar(144) null comment '忘记密码',
|
||||
locking int not null comment '锁定',
|
||||
expiration datetime comment '过期时间',
|
||||
credentials_expiration datetime comment '认证过期时间',
|
||||
@@ -19,5 +20,6 @@ create table if not exists t_user
|
||||
deleted bigint not null default 0,
|
||||
version int not null default 0,
|
||||
constraint t_user_unique_username unique (username, deleted),
|
||||
constraint t_user_unique_verify unique (verify, deleted)
|
||||
constraint t_user_unique_verify unique (verify, deleted),
|
||||
constraint t_user_unique_forget unique (forget, deleted)
|
||||
) comment '用户表';
|
||||
78
src/main/resources/templates/email-password-changed-cn.vm
Normal file
78
src/main/resources/templates/email-password-changed-cn.vm
Normal file
@@ -0,0 +1,78 @@
|
||||
<!doctype html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>您的密码已更改</title>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
color: #4D4D4D;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #4E47BB;
|
||||
}
|
||||
|
||||
body {
|
||||
display: flex;
|
||||
background-color: #F1F2F7;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.view {
|
||||
display: flex;
|
||||
width: 800px;
|
||||
max-width: 100vw;
|
||||
align-content: center;
|
||||
}
|
||||
|
||||
.card {
|
||||
margin: 20px;
|
||||
padding: 20px;
|
||||
border-radius: 12px;
|
||||
flex: 1;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.title {
|
||||
margin-bottom: 10px;
|
||||
text-align: center;
|
||||
font-weight: bolder;
|
||||
font-size: 1.6em;
|
||||
color: #4E47BB;
|
||||
}
|
||||
|
||||
.retrieve-button a {
|
||||
padding: 20px 30px;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
font-size: 1.2em;
|
||||
background-color: #4E47BB;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.not-reply {
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="view">
|
||||
<div class="card">
|
||||
<div class="title">密 码 已 更 改</div>
|
||||
<div><strong>${username}</strong>,您好:</div>
|
||||
<div style="text-indent: 2em">您在 <a target="_blank" href=${appUrl}>${appName}(${appUrl})</a> 的密码已更改,操作
|
||||
IP 地址为 [${ipAddress}]。如果不是您自己的操作,请尽快检查您的账号!
|
||||
</div>
|
||||
<div class="not-reply">此邮件由系统自动发送,请勿回复!</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
90
src/main/resources/templates/email-retrieve-password-cn.vm
Normal file
90
src/main/resources/templates/email-retrieve-password-cn.vm
Normal file
@@ -0,0 +1,90 @@
|
||||
<!doctype html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>找回您的密码</title>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
color: #4D4D4D;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #4E47BB;
|
||||
}
|
||||
|
||||
body {
|
||||
display: flex;
|
||||
background-color: #F1F2F7;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.view {
|
||||
display: flex;
|
||||
width: 800px;
|
||||
max-width: 100vw;
|
||||
align-content: center;
|
||||
}
|
||||
|
||||
.card {
|
||||
margin: 20px;
|
||||
padding: 20px;
|
||||
border-radius: 12px;
|
||||
flex: 1;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.title {
|
||||
margin-bottom: 10px;
|
||||
text-align: center;
|
||||
font-weight: bolder;
|
||||
font-size: 1.6em;
|
||||
color: #4E47BB;
|
||||
}
|
||||
|
||||
.retrieve-button {
|
||||
display: flex;
|
||||
margin: 20px;
|
||||
padding-bottom: 60px;
|
||||
justify-content: center;
|
||||
|
||||
}
|
||||
|
||||
.retrieve-button a {
|
||||
padding: 20px 30px;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
font-size: 1.2em;
|
||||
background-color: #4E47BB;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.not-reply {
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="view">
|
||||
<div class="card">
|
||||
<div class="title">找 回 密 码</div>
|
||||
<div><strong>${username}</strong>,您好:</div>
|
||||
<div style="text-indent: 2em">您正在找回 <a target="_blank" href=${appUrl}>${appName}(${appUrl})</a> 的密码,操作
|
||||
IP 地址为 [${ipAddress}],如果是您自己的操作,请在 <u><i>两小时内</i></u> 点击下面的按钮找回您的密码:
|
||||
</div>
|
||||
<div class="retrieve-button"><a target="_blank" href=${retrieveUrl}>找回密码</a></div>
|
||||
<div>如果以上按钮无法点击,请复制此链接到浏览器地址栏中访问:<a target="_blank"
|
||||
href=${retrieveUrl}>${retrieveUrl}</a></div>
|
||||
<div>如果并非本人操作,请忽略该邮件</div>
|
||||
<div class="not-reply">此邮件由系统自动发送,请勿回复!</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -54,6 +54,7 @@
|
||||
justify-content: center;
|
||||
|
||||
}
|
||||
|
||||
.verify-button a {
|
||||
padding: 20px 30px;
|
||||
color: white;
|
||||
@@ -75,9 +76,12 @@
|
||||
<div class="card">
|
||||
<div class="title">账 号 激 活</div>
|
||||
<div><strong>${username}</strong>,您好:</div>
|
||||
<div style="text-indent: 2em">感谢注册 <a target="_blank" href=${appUrl}>${appName}(${appUrl})</a>,在继续使用之前,我们需要确定您的电子邮箱地址的有效性,请在 <u><i>两小时内</i></u> 点击下面的按钮帮助我们验证:</div>
|
||||
<div style="text-indent: 2em">感谢注册 <a target="_blank" href=${appUrl}>${appName}(${appUrl})</a>,在继续使用之前,我们需要确定您的电子邮箱地址的有效性,请在
|
||||
<u><i>两小时内</i></u> 点击下面的按钮帮助我们验证:
|
||||
</div>
|
||||
<div class="verify-button"><a target="_blank" href=${verifyUrl}>验证邮箱</a></div>
|
||||
<div>如果以上按钮无法点击,请复制此链接到浏览器地址栏中访问:<a target="_blank" href=${verifyUrl}>${verifyUrl}</a></div>
|
||||
<div>如果以上按钮无法点击,请复制此链接到浏览器地址栏中访问:<a target="_blank" href=${verifyUrl}>${verifyUrl}</a>
|
||||
</div>
|
||||
<div class="not-reply">此邮件由系统自动发送,请勿回复!</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user