Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
onionZunyi
beauty_ssm
提交
fd255c72
B
beauty_ssm
项目概览
onionZunyi
/
beauty_ssm
与 Fork 源项目一致
Fork自
爱吃血肠 / beauty_ssm
通知
6
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
B
beauty_ssm
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
fd255c72
编写于
4月 01, 2018
作者:
爱吃血肠
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化用户登录
上级
f8d97b7a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
5 deletion
+8
-5
src/main/resources/mapper/UserMapper.xml
src/main/resources/mapper/UserMapper.xml
+1
-1
src/main/webapp/WEB-INF/jsp/user/userLogin.jsp
src/main/webapp/WEB-INF/jsp/user/userLogin.jsp
+1
-2
src/main/webapp/WEB-INF/jsp/user/userResgiter.jsp
src/main/webapp/WEB-INF/jsp/user/userResgiter.jsp
+6
-2
未找到文件。
src/main/resources/mapper/UserMapper.xml
浏览文件 @
fd255c72
...
...
@@ -119,7 +119,7 @@
<include
refid=
"t_user_Column"
/>
from t_user
<where>
<if
test=
"
email != null "
>
and t_user.email = #{email
}
</if>
<if
test=
"
name != null "
>
and t_user.name = #{name
}
</if>
<if
test=
"password != null "
>
and t_user.password = #{password}
</if>
</where>
</select>
...
...
src/main/webapp/WEB-INF/jsp/user/userLogin.jsp
浏览文件 @
fd255c72
...
...
@@ -44,7 +44,7 @@
<div
class=
"detail"
>
<ul>
<li>
<input
class=
"input telNum"
type=
"text"
name=
"email"
id=
""
value=
""
placeholder=
"请输入
邮箱
"
/>
<input
class=
"input telNum"
type=
"text"
name=
"email"
id=
""
value=
""
placeholder=
"请输入
用户名
"
/>
</li>
<li>
<input
class=
"input pwd"
type=
"password"
name=
"password"
id=
"pwd"
value=
""
placeholder=
"请输入密码"
/>
...
...
@@ -92,7 +92,6 @@
url
:
'
/user/userLogin
'
,
success
:
function
(
data
)
{
if
(
data
.
success
){
alert
(
data
.
error
);
window
.
location
.
href
=
"
/user/home
"
;
}
else
{
alert
(
data
.
error
);
...
...
src/main/webapp/WEB-INF/jsp/user/userResgiter.jsp
浏览文件 @
fd255c72
...
...
@@ -39,6 +39,10 @@
<div
class=
"findPwd"
>
<div
class=
"contentInfo"
>
<ul
class=
"getInfo margin-t-49 margin-l-40"
>
<li
class=
"margin-b-19"
>
<label
class=
"infoName1 inputDes"
for=
"email"
>
用户名:
</label>
<input
class=
"info write-n"
type=
"text"
name=
"name"
id=
"name"
value=
""
placeholder=
"请输入用户名称"
/>
</li>
<li
class=
"margin-b-19"
>
<label
class=
"infoName1 inputDes"
for=
"email"
>
登录邮箱:
</label>
<input
class=
"info write-n"
type=
"text"
name=
"email"
id=
"email"
value=
""
placeholder=
"请输入登录邮箱"
/>
...
...
@@ -50,11 +54,11 @@
</li>
<li
class=
"margin-b-19"
>
<label
class=
"infoName1 inputDes"
for=
"newPwd"
>
设置登录密码:
</label>
<input
class=
"info write-n"
type=
"
text
"
name=
"password"
id=
"newPwd"
value=
""
placeholder=
"请设置密码"
/>
<input
class=
"info write-n"
type=
"
password
"
name=
"password"
id=
"newPwd"
value=
""
placeholder=
"请设置密码"
/>
</li>
<li
class=
"margin-b-19"
>
<label
class=
"infoName1 inputDes"
for=
"pwd-a"
>
再次输入密码:
</label>
<input
class=
"info write-n"
type=
"
text
"
name=
"pwd-a"
id=
"pwd-a"
value=
""
placeholder=
"请再次输入密码"
/>
<input
class=
"info write-n"
type=
"
password
"
name=
"pwd-a"
id=
"pwd-a"
value=
""
placeholder=
"请再次输入密码"
/>
</li>
</ul>
<div
class=
"btn-bounce"
onclick=
"sure()"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录