Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
RIT_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박권수
2021-08-21 22:16:43 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6b13003442b1e96433747d347b2f900fd543f8a3
6b130034
1 parent
2afc687c
fix. error
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
server/src/api/auth/auth.ctrl.js
server/src/api/auth/auth.ctrl.js
View file @
6b13003
...
...
@@ -100,13 +100,13 @@ exports.doctorRegister = async ctx => {
}
const
existDoctorInfo
=
await
DoctorInfo
.
findByDoctorId
(
userId
);
if
(
existDoctorInfo
.
useYn
===
'W'
)
{
if
(
existDoctorInfo
&&
existDoctorInfo
.
useYn
===
'W'
)
{
ctx
.
status
=
401
;
ctx
.
body
=
{
error
:
'가입 승인 대기중인 회원입니다.'
,
};
return
;
}
else
if
(
existDoctorInfo
.
useYn
===
'N'
)
{
}
else
if
(
existDoctorInfo
&&
existDoctorInfo
.
useYn
===
'N'
)
{
ctx
.
status
=
401
;
ctx
.
body
=
{
error
:
'가입이 거절된 회원입니다.'
,
...
...
Please
register
or
login
to post a comment