How to get current user.email via javascript?


(Allen - Watchman Monitoring) #1

Continuing the discussion from How to get current user?:

Pinging this question, and pulling it out for discussion, as I never heard why it couldn’t/shouldn’t be done, and it’s still something missing from our forum.


(Jens Maier) #2

User.current() does not contain email, while the result of User.findByUsername(User.current().username) does contain the email field.
This seems oddly inconsistent.


(Régis Hanol) #3

Probably is an easy fix :wink:


(Jesse Perry) #4