Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
sayhoChun
/
kcSpecialVehicle
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
b7ce005f
authored
2017-04-04 10:03:26 +0900
by
sayhoChun
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
modifyUserInfo issue handled
1 parent
c7829abe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
common/classes/ApiUser.php
common/classes/ApiUser.php
View file @
b7ce005
...
...
@@ -367,8 +367,8 @@ if (! class_exists("ApiUser"))
function
modifyUserInfo
()
{
$userNo
=
$this
->
appUser
[
"no"
];
//$is_file_change = $this->req["is_file_change"]; // NEW / DEL / NON
// $userNo=$this->req["userNo"];
$userPwd
=
$this
->
req
[
"userPwd"
];
$userPwdConfirm
=
$this
->
req
[
"userPwdConfirm"
];
$nickName
=
$this
->
req
[
"nickName"
];
...
...
@@ -378,10 +378,19 @@ if (! class_exists("ApiUser"))
$userVehicleType
=
$this
->
req
[
"userVehicleType"
];
$userVehicleWish
=
$this
->
req
[
"userVehicleWish"
];
$sql
=
"SELECT * FROM tblUser WHERE nickName='
{
$nickName
}
AND status=1'"
;
$regInfo
=
$this
->
getRow
(
$sql
);
if
(
$regInfo
!=
null
)
return
$this
->
makeResultJson
(
-
100
,
"닉네임 중복을 확인해 주세요"
);
$sql
=
"SELECT nickName FROM tblUser WHERE userNo='
{
$userNo
}
'"
;
$currentNick
=
$this
->
getValue
(
$sql
,
"nickName"
);
// echo "currentNick".$currentNick;
// echo "changeNick".$nickName;
if
(
$currentNick
!=
$nickName
){
echo
"???"
;
$sql
=
"SELECT * FROM tblUser WHERE nickName='
{
$nickName
}
' AND status=1"
;
$regInfo
=
$this
->
getRow
(
$sql
);
if
(
$regInfo
!=
null
)
return
$this
->
makeResultJson
(
-
100
,
"닉네임 중복을 확인해 주세요"
);
}
if
(
$userPwd
!=
$userPwdConfirm
)
return
$this
->
makeResultJson
(
-
101
,
"비밀번호 가 일치하지 않습니다"
);
...
...
Please
register
or
sign in
to post a comment