Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
onionZunyi
beauty_ssm
提交
b8089610
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,发现更多精彩内容 >>
提交
b8089610
编写于
3月 25, 2018
作者:
爱吃血肠
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
寻找密码...
上级
b3b98250
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
75 addition
and
15 deletion
+75
-15
src/main/java/com/yingjun/ssm/web/FindPwdController.java
src/main/java/com/yingjun/ssm/web/FindPwdController.java
+60
-0
src/main/webapp/WEB-INF/jsp/user/findPwd.jsp
src/main/webapp/WEB-INF/jsp/user/findPwd.jsp
+14
-14
src/main/webapp/WEB-INF/jsp/user/userLogin.jsp
src/main/webapp/WEB-INF/jsp/user/userLogin.jsp
+1
-1
未找到文件。
src/main/java/com/yingjun/ssm/web/FindPwdController.java
0 → 100644
浏览文件 @
b8089610
package
com.yingjun.ssm.web
;
import
com.google.gson.Gson
;
import
com.yingjun.ssm.dto.BaseResult
;
import
com.yingjun.ssm.entity.User
;
import
com.yingjun.ssm.enums.ResultEnum
;
import
com.yingjun.ssm.exception.BizException
;
import
com.yingjun.ssm.service.UserService
;
import
com.yingjun.ssm.util.CodeUtil
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.Model
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
javax.servlet.http.HttpSession
;
/**
* 忘记密码找回密码
* @author liyunfeng
*/
@Controller
@RequestMapping
(
"/find"
)
public
class
FindPwdController
{
private
final
Logger
LOG
=
LoggerFactory
.
getLogger
(
this
.
getClass
());
@Autowired
private
UserService
userService
;
/**
* 到达用户登录页面
* @return
*/
@RequestMapping
(
value
=
"/toFindPwd"
)
public
String
toFindPwd
()
{
return
"/user/findPwd"
;
}
/**
* 找回密码
* @return
*/
@ResponseBody
@RequestMapping
(
value
=
"/findPwd"
,
produces
=
{
"application/json;charset=UTF-8"
})
public
BaseResult
<
Object
>
userLogin
()
{
try
{
}
catch
(
BizException
e
)
{
return
new
BaseResult
<>(
false
,
e
.
getMessage
());
}
catch
(
Exception
e
)
{
return
new
BaseResult
<>(
false
,
ResultEnum
.
INVALID_USER
.
getMsg
());
}
return
new
BaseResult
<>(
true
,
"登陆成功"
);
}
}
src/main/webapp/WEB-INF/jsp/user/findPwd.jsp
浏览文件 @
b8089610
...
...
@@ -4,23 +4,23 @@
<head>
<meta
charset=
"UTF-8"
>
<title>
个人中心-找回密码
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/safety.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
/resource/
css/safety.css"
/>
<!--其他样式-->
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/enterpriseInfo.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/proprietorship.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/buyService.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/home.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/news.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/registration.css"
/>
<script
src=
"
js
/jquery.min.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"
js
/findPwd.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"
js
/function.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
/resource/
css/enterpriseInfo.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
/resource/
css/proprietorship.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
/resource/
css/buyService.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
/resource/
css/home.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
/resource/
css/news.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
/resource/
css/registration.css"
/>
<script
src=
"
/resource/script
/jquery.min.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"
/resource/script
/findPwd.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"
/resource/script
/function.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
</head>
<body
class=
"grayBg"
>
<!--首页头部-->
<header>
<div
class=
"header-content"
>
<div
class=
"logo"
><span
class=
"logo-img"
>
京东
益世集群注册平台
</span></div>
<div
class=
"logo"
><span
class=
"logo-img"
>
益世集群注册平台
</span></div>
<div
class=
"header-menu"
>
<ul>
<li><a
href=
"home.html"
>
首页
</a></li>
...
...
@@ -33,7 +33,7 @@
</div>
<div
class=
"mine"
>
<a
href=
"secretaryLogin.html"
>
<div
class=
"mine-img"
><img
src=
"img/login.png"
/></div>
<div
class=
"mine-img"
><img
src=
"
/resource/
img/login.png"
/></div>
<div
class=
"mine-describe"
><a
href=
"javascript:void(0)"
>
秘书公司登录
</a></div>
</a>
</div>
...
...
@@ -47,8 +47,8 @@
<div
class=
"contentInfo"
>
<ul
class=
"getInfo margin-t-49 margin-l-40"
>
<li
class=
"margin-b-19"
>
<label
class=
"infoName1 inputDes"
for=
"tel"
>
登录
手机
号:
</label>
<input
class=
"
showInfo"
type=
"text"
name=
"tel"
id=
"tel"
readonly=
"readonly"
value=
"139****2345
"
placeholder=
""
/>
<label
class=
"infoName1 inputDes"
for=
"tel"
>
登录
邮箱
号:
</label>
<input
class=
"
info2"
type=
"text"
name=
"email"
id=
"tel"
value=
"
"
placeholder=
""
/>
</li>
<li
class=
"margin-b-19"
>
<label
class=
"infoName1 inputDes"
for=
"code"
>
验证码:
</label>
...
...
src/main/webapp/WEB-INF/jsp/user/userLogin.jsp
浏览文件 @
b8089610
...
...
@@ -52,7 +52,7 @@
</ul>
<div
class=
"forgatPwd"
>
<a
href=
"/user/userRegister"
>
新用户注册
</a>
<a
href=
"
findPwd.html
"
>
忘记密码
</a>
<a
href=
"
/find/toFindPwd
"
>
忘记密码
</a>
</div>
<div
id=
"loginBtn"
class=
"myBtn mar-t-30"
style=
""
>
<a>
立即登录
</a>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录