Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
付智勇
/
koa2_Sequelize_project
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
付智勇
8 years ago
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
13b491d594caaf81759a1f85510cdc6ac26e939e
13b491d5
1 parent
226a6725
no message
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
1 行增加
和
3 行删除
services/userService.js
services/userService.js
查看文件 @
13b491d
...
...
@@ -45,9 +45,7 @@ userService.prototype.login = async(loginName,pw,userEmail) => {
{
loginName
:
loginName
}
];
let
User
=
await
userModel
.
find
({
where
:{
$or
:
queryData
}})
console
.
dir
(
User
)
console
.
log
(
User
.
password
,
saitMd5
.
md5
(
pw
,
User
.
salt
))
if
(
!
User
){
if
(
!
User
){
return
{
code
:
300
,
msg
:
'用户不存在'
}
}
else
if
(
User
.
password
!=
saitMd5
.
md5
(
pw
)){
return
{
code
:
300
,
msg
:
'密码不正确'
}
...
...
请
注册
或
登录
后发表评论