Extensibility: Allow plugins to munge user params

This commit is contained in:
Robin Ward 2018-02-16 19:11:41 -05:00
parent a2327b4897
commit 02093ecbdd

View File

@ -975,7 +975,12 @@ class UsersController < ApplicationController
result.merge!(params.permit(:active, :staged, :approved)) result.merge!(params.permit(:active, :staged, :approved))
end end
result modify_user_params(result)
end
# Plugins can use this to modify user parameters
def modify_user_params(attrs)
attrs
end end
def user_locale def user_locale