登录完成
This commit is contained in:
@@ -12,7 +12,7 @@ var loginup = async (ctx,next) => {
|
||||
})
|
||||
}
|
||||
//判断用户名密码
|
||||
if(ctx.request.body.name == arr[i].name && ctx.request.body.pwd == arr[i].pwd){
|
||||
if(ctx.request.body.name == arr[0].name && ctx.request.body.pwd == arr[0].pwd){
|
||||
//颁发token
|
||||
const token = jwt.sign({
|
||||
name: ctx.request.body.name,
|
||||
|
||||
Reference in New Issue
Block a user