FIX: Update activation email route was returning a generic json error.

This commit is contained in:
Guo Xiang Tan
2018-05-31 12:15:28 +08:00
parent 5a8d2b5e45
commit 95f9b72351
2 changed files with 8 additions and 8 deletions

View File

@ -749,7 +749,7 @@ class UsersController < ApplicationController
enqueue_activation_email
render json: success_json
else
render_json_error(@user)
render_json_error(primary_email)
end
end
end