mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Merge pull request #4681 from vietqhoang/feature/add-user-title-to-sso-payload
FEATURE: Add user title to SSO payload
This commit is contained in:
@@ -79,6 +79,8 @@ class DiscourseSingleSignOn < SingleSignOn
|
||||
user.admin = admin unless admin.nil?
|
||||
user.moderator = moderator unless moderator.nil?
|
||||
|
||||
user.title = title unless title.nil?
|
||||
|
||||
# optionally save the user and sso_record if they have changed
|
||||
user.user_avatar.save! if user.user_avatar
|
||||
user.save!
|
||||
|
||||
Reference in New Issue
Block a user