更新时间:2023-12-01 09:30:34
我可以使用
this.get('session.user_email')
在我的应用路由找到认证的用户。
in my application route to find the authenticated user.
更好的方法是重新打开会话
对象,并添加引用已验证用户的属性。请参阅指南中的此示例。
The better way to do it is to reopen the session
object and add a property that references the authenticated user. See this example from the guides.