mirror of
https://github.com/discourse/discourse.git
synced 2025-02-24 02:21:55 +08:00

This fixes a bug where the server would 500 if the only user fields where optional ones, and the create_user call didn't provide any values so that params[:user_fields] was nil. Additionally, don't bother double-checked for required fields, since we iterate over all fields and will catch any that are required and blank.