Quantcast
Viewing all articles
Browse latest Browse all 4837

How to get the currentUser in a controller?

@louisnovick wrote:

My goal is to get the currently logged in user's email and save it to the message model when adding a new message to a chat box. What is the best way to get this information into the controller to later be saved in a model? I can currently use session in my .hbs like so {{session.currentUser.email}}

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4837