Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
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
hujun
tl_estate
Commits
993c8a5f
Commit
993c8a5f
authored
Feb 01, 2018
by
zfc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登陆
parent
ee3e0f30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
Login.php
application/index/controller/Login.php
+6
-2
AAgents.php
application/model/AAgents.php
+1
-1
No files found.
application/index/controller/Login.php
View file @
993c8a5f
...
...
@@ -39,9 +39,11 @@ class Login extends Basic
{
$name
=
$_POST
[
"username"
];
$password
=
$_POST
[
"passwd"
];
if
(
!
isset
(
$name
)
||
!
isset
(
$passwd
))
{
if
(
!
isset
(
$name
)
||
!
isset
(
$password
))
{
return
view
(
"/login/login"
,
[
"msg"
=>
"用户名或密码不能为空"
]);
}
// if($name=='admin'){
// $params["name"] = $name;
// $params["pswd"] = md5(md5($passwd));
...
...
@@ -73,7 +75,9 @@ class Login extends Basic
$password
=
md5
(
$password
);
$where
=
"( phone='
{
$name
}
') and password='
$password
' "
;
$list
=
$this
->
loginAgent
->
verifyUser
(
$filed
,
$join
,
$where
);
if
(
!
$list
){
if
(
!
$list
){
return
view
(
"/login/login"
,
[
"msg"
=>
"用户名或密码错误"
]);
}
//prt($list->toArray());//转化arr
...
...
application/model/AAgents.php
View file @
993c8a5f
...
...
@@ -115,7 +115,7 @@ public function saveList(){
->
join
(
$join
)
->
where
(
$params
)
->
find
();
//
echo $this->getLastSql();
echo
$this
->
getLastSql
();
return
$r
;
}
...
...
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