Toggle navigation
Toggle navigation
This project
Loading...
Sign in
고다경
/
Open_Source_project
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김태희
2019-06-06 18:27:26 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
022d0ddc4a245b1f25a00676adb16315ea4db307
022d0ddc
1 parent
e9af6647
회원가입 기능 구현방법 변경-파일삭제
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
27 deletions
routes/loginroutes.js
routes/loginroutes.js
deleted
100644 → 0
View file @
e9af664
exports
.
register
=
function
(
req
,
res
)
{
// console.log("req", req.body);
var
today
=
new
Date
();
var
users
=
{
"UserNo"
:
req
.
body
.
UserNo
,
"UserID"
:
req
.
body
.
UserID
,
"UserPw"
:
req
.
body
.
UserPw
,
"password"
:
req
.
body
.
password
,
"created"
:
today
,
"modified"
:
today
}
connenction
.
query
(
'INSERT INTO users SET ?'
,
users
,
function
(
error
,
results
,
fields
)
{
if
(
error
)
{
console
.
log
(
"error ocurred"
,
error
);
res
.
send
({
"code"
:
400
,
"failed"
:
"error ocurred"
})
}
else
{
console
.
log
(
'The solution is: '
,
results
);
res
.
send
({
"code"
:
200
,
"success"
:
"user registered sucessfully"
});
}
});
}
Please
register
or
login
to post a comment