mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 09:02:46 +08:00
fake_success_reponse
=> fake_success_response
This commit is contained in:
parent
a546472775
commit
1884dc8d3f
|
@ -146,7 +146,7 @@ class UsersController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
return fake_success_reponse if suspicious? params
|
return fake_success_response if suspicious? params
|
||||||
|
|
||||||
user = User.new_from_params(params)
|
user = User.new_from_params(params)
|
||||||
|
|
||||||
|
@ -337,7 +337,7 @@ class UsersController < ApplicationController
|
||||||
honeypot_or_challenge_fails?(params) || SiteSetting.invite_only?
|
honeypot_or_challenge_fails?(params) || SiteSetting.invite_only?
|
||||||
end
|
end
|
||||||
|
|
||||||
def fake_success_reponse
|
def fake_success_response
|
||||||
render(
|
render(
|
||||||
json: {
|
json: {
|
||||||
success: true,
|
success: true,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user