Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
fc03d050
Commit
fc03d050
authored
Jan 17, 2019
by
季圣华
Browse files
解决用户登录失败的bug
parent
3df03ef9
Changes
4
Hide whitespace changes
Inline
Side-by-side
erp_web/index.html
View file @
fc03d050
...
...
@@ -3,8 +3,6 @@
<head>
<title>
ERP系统
</title>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<!-- 指定以IE8的方式来渲染 -->
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=EmulateIE8"
/>
<link
rel=
"shortcut icon"
href=
"/images/favicon.ico"
type=
"image/x-icon"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"/css/css.css"
/>
<script
type=
"text/javascript"
src=
"/js/jquery-1.8.0.min.js"
></script>
...
...
erp_web/login.html
View file @
fc03d050
...
...
@@ -3,8 +3,6 @@
<head>
<title>
ERP系统
</title>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<!-- 指定以IE8的方式来渲染 -->
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=EmulateIE8"
/>
<link
rel=
"shortcut icon"
href=
"/images/favicon.ico"
type=
"image/x-icon"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"/css/css.css"
/>
<script
type=
"text/javascript"
src=
"/js/jquery-1.8.0.min.js"
></script>
...
...
@@ -132,7 +130,7 @@
if
(
res
.
data
.
user
)
{
var
user
=
res
.
data
.
user
;
sessionStorage
.
setItem
(
"
userId
"
,
user
.
id
);
window
.
location
.
href
=
"
/
"
;
top
.
location
.
href
=
"
http://
"
+
location
.
host
+
"
/index.html
"
;
}
}
},
...
...
erp_web/pages/common/main.html
View file @
fc03d050
...
...
@@ -106,6 +106,7 @@
$
(
'
#loginOut
'
).
click
(
function
()
{
if
(
confirm
(
"
确认要退出系统吗?
"
))
sessionStorage
.
removeItem
(
"
userId
"
);
location
.
href
=
'
/user/logout
'
;
})
//IE下禁止选中
...
...
src/main/java/com/jsh/erp/controller/UserController.java
View file @
fc03d050
...
...
@@ -52,8 +52,7 @@ public class UserController {
if
(
userInfo
!=
null
)
{
sessionUser
=
(
User
)
userInfo
;
}
if
(
sessionUser
!=
null
&&
username
.
equalsIgnoreCase
(
sessionUser
.
getLoginame
())
&&
sessionUser
.
getPassword
().
equals
(
password
))
{
if
(
sessionUser
!=
null
&&
username
.
equalsIgnoreCase
(
sessionUser
.
getLoginame
()))
{
logger
.
info
(
"====用户 "
+
username
+
"已经登录过, login 方法调用结束===="
);
msgTip
=
"user already login"
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment