且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用Ember简单认证获取当前身份验证的用户?

更新时间: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.