添加对应 php注册登录的token 验证逻辑
This commit is contained in:
@@ -97,7 +97,7 @@ func BaseGetToken(ctx *ActionContext[BaseGetTokenParam]) (resp *basic.Response)
|
||||
}
|
||||
|
||||
err = modelToken.InsertToken(tokenItem)
|
||||
log.Println(err)
|
||||
log.Println(*tokenItem.Token)
|
||||
if err != nil {
|
||||
return resp.ErrorErr(1, err)
|
||||
}
|
||||
@@ -342,7 +342,6 @@ func AccountLoginWithEmailPassword(ctx *ActionContext[AccountLoginWithEmailPassw
|
||||
return resp.ErrorErr(1, err)
|
||||
}
|
||||
|
||||
log.Println(ctx.Localize(translator.AccountNotRegistered))
|
||||
if customer == nil {
|
||||
return resp.ErrorTrCode(ctx, translator.AccountNotRegistered)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user