mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
FIX: remove unneeded keys from failed response
This commit is contained in:
parent
96168cb3c6
commit
60941f214c
@ -545,11 +545,8 @@ class UsersController < ApplicationController
|
||||
else
|
||||
if @error || @user&.errors&.any?
|
||||
render json: {
|
||||
success: false,
|
||||
message: @error,
|
||||
errors: @user&.errors&.to_hash,
|
||||
is_developer: UsernameCheckerService.is_developer?(@user&.email),
|
||||
admin: @user&.admin?
|
||||
errors: @user&.errors&.to_hash
|
||||
}
|
||||
else
|
||||
render json: {
|
||||
|
Loading…
Reference in New Issue
Block a user