fix: sms登陆忘记返回user信息了嘻嘻
This commit is contained in:
@@ -61,6 +61,9 @@ export class AuthController {
|
|||||||
// 验证通过,(注册并)登陆
|
// 验证通过,(注册并)登陆
|
||||||
const session = await this.authService.loginWithPhone(phone);
|
const session = await this.authService.loginWithPhone(phone);
|
||||||
this.setUserSession(res, session);
|
this.setUserSession(res, session);
|
||||||
|
return {
|
||||||
|
user: await this.userService.findById(session.userId),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Post('passkey/login/options')
|
@Post('passkey/login/options')
|
||||||
|
|||||||
Reference in New Issue
Block a user