mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: support SSO website and location overrides
Add location and website + the ability to override using SSO using the `sso_overrides_location` and `sso_overrides_website` site settings.
This commit is contained in:
@@ -117,6 +117,11 @@ class DiscourseSingleSignOn < SingleSignOn
|
||||
user.user_profile.save!
|
||||
end
|
||||
|
||||
if location
|
||||
user.user_profile.location = location
|
||||
user.user_profile.save!
|
||||
end
|
||||
|
||||
unless admin.nil? && moderator.nil?
|
||||
Group.refresh_automatic_groups!(:admins, :moderators, :staff)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user