Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SooonerHotel
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴贤德
SooonerHotel
Commits
b4aa012f
Commit
b4aa012f
authored
Dec 23, 2019
by
wangjiangze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录密码采用加密传输
登录密码采用加密传输
parent
42c7e947
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
LoginAction.class.php
SooonerHotel/App/Lib/Action/LoginAction.class.php
+4
-2
index.html
SooonerHotel/App/Tpl/zh-cn/Login/index.html
+4
-1
index_up.html
SooonerHotel/App/Tpl/zh-cn/Login/index_up.html
+4
-1
No files found.
SooonerHotel/App/Lib/Action/LoginAction.class.php
View file @
b4aa012f
...
...
@@ -21,7 +21,8 @@ class LoginAction extends Action{
public
function
loginDo
(){
$UserModel
=
D
(
"User"
);
$username
=
I
(
'username'
);
$password
=
I
(
'password'
,
''
,
md5
);
// $password=I('password','',md5);
$password
=
I
(
'password'
);
$code
=
I
(
'code'
,
''
,
md5
);
if
(
!
$this
->
check_limit
()){
header
(
'Content-Type:text/html; charset=utf-8'
);
...
...
@@ -144,7 +145,8 @@ class LoginAction extends Action{
//2.验证 GA
$UserModel
=
D
(
"User"
);
$username
=
I
(
'username'
);
$password
=
I
(
'password'
,
''
,
md5
);
// $password=I('password','',md5);
$password
=
I
(
'password'
);
$code
=
I
(
'code'
);
$where
[
'account'
]
=
$username
;
...
...
SooonerHotel/App/Tpl/zh-cn/Login/index.html
View file @
b4aa012f
...
...
@@ -7,6 +7,7 @@
<link
rel=
"shortcut icon"
href=
"/{$SYSTEM_INFO.favicon}"
>
<link
href=
"__PUBLIC__/newVsdn/css/style_login.css"
rel=
"stylesheet"
type=
"text/css"
/>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/common/md5.js"
></script>
<script
type=
"text/javascript"
>
//搜索输入框
function
Focus
(
obj
)
{
...
...
@@ -25,6 +26,7 @@
</script>
<script
type=
"text/javascript"
>
function
login
(){
$
(
'input[name="password"]'
).
val
(
hex_md5
(
$
(
"input#password"
).
val
()));
$
(
"#f"
).
submit
();
}
$
(
function
(){
...
...
@@ -90,7 +92,8 @@
</div>
<div
class=
"inputWrap"
>
<img
src=
"__PUBLIC__/newVsdn/images/password.png"
/>
<input
id=
"password"
name=
"password"
type=
"password"
placeholder=
"密码"
onclick=
"Focus(this);"
onblur=
"Blur(this);"
class=
"input"
/>
<input
type=
"hidden"
name=
"password"
valu=
""
/>
<input
id=
"password"
type=
"password"
placeholder=
"密码"
onclick=
"Focus(this);"
onblur=
"Blur(this);"
class=
"input"
/>
</div>
<div
class=
"inputWrap"
>
<img
src=
"__PUBLIC__/newVsdn/images/password.png"
/>
...
...
SooonerHotel/App/Tpl/zh-cn/Login/index_up.html
View file @
b4aa012f
...
...
@@ -7,6 +7,7 @@
<link
rel=
"shortcut icon"
href=
"/{$SYSTEM_INFO.favicon}"
>
<link
href=
"__PUBLIC__/newVsdn/css/style_login.css"
rel=
"stylesheet"
type=
"text/css"
/>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/common/md5.js"
></script>
<script
type=
"text/javascript"
>
//搜索输入框
function
Focus
(
obj
)
{
...
...
@@ -29,6 +30,7 @@
</script>
<script
type=
"text/javascript"
>
function
login
(){
$
(
'input[name="password"]'
).
val
(
hex_md5
(
$
(
"input#password"
).
val
()));
$
(
"#f"
).
submit
();
}
$
(
function
(){
...
...
@@ -94,7 +96,8 @@
</div>
<div
class=
"inputWrap"
>
<img
src=
"__PUBLIC__/newVsdn/images/password.png"
/>
<input
id=
"password"
name=
"password"
type=
"password"
placeholder=
"密码"
value=
"密码"
onclick=
"Focus(this);"
onblur=
"Blur(this);"
class=
"input"
/>
<input
type=
"hidden"
name=
"password"
value=
""
/>
<input
id=
"password"
type=
"password"
placeholder=
"密码"
value=
"密码"
onclick=
"Focus(this);"
onblur=
"Blur(this);"
class=
"input"
/>
</div>
<div
class=
"inputWrap"
>
<img
src=
"__PUBLIC__/newVsdn/images/password.png"
/>
...
...
Write
Preview
Markdown
is supported
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