mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
FEATURE: Secondary emails support.
This commit is contained in:

committed by
Guo Xiang Tan

parent
50e59fb9bd
commit
21ebb1cd54
@ -146,8 +146,11 @@ class UsersController < ApplicationController
|
||||
|
||||
StaffActionLogger.new(current_user).log_check_email(user, context: params[:context])
|
||||
|
||||
email, *secondary_emails = user.emails
|
||||
|
||||
render json: {
|
||||
email: user.email,
|
||||
email: email,
|
||||
secondary_emails: secondary_emails,
|
||||
associated_accounts: user.associated_accounts
|
||||
}
|
||||
rescue Discourse::InvalidAccess
|
||||
|
Reference in New Issue
Block a user