taqueci / redmine_wysiwyg_editor

Redmine WYSIWYG Editor plugin
GNU General Public License v2.0
114 stars 27 forks source link

User# #130

Closed lcasanova78 closed 3 years ago

lcasanova78 commented 3 years ago

if I have the user#xxxx how can I know his login, I have a redmine instance that if I do User.find_by_id(xxxx) it returns me the user name and not his login, but I need to know his login to send him an email, since his email address is login@email.com.

taqueci commented 3 years ago

Hi @lcasanova78

I guess you can know login name by:

User.find_by_id(xxx).login

You can also get e-mail address by:

User.find_by_id(xxx).mail