diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb index 4ba53f52..cfdf5b68 100644 --- a/app/controllers/welcome_controller.rb +++ b/app/controllers/welcome_controller.rb @@ -262,7 +262,7 @@ class WelcomeController < ApplicationController reward_grade(@user, @user.id, 'Account', 500) user.update_attributes!(authentication:1) end - render :json => {:message => "sucess"} + end end #logger.info("#{list[0]}---#{list[1]}") @@ -287,6 +287,7 @@ class WelcomeController < ApplicationController # end end + render :json => {:message => "sucess"} rescue Exception => e logger.error(e.message) render :json => {:status => 500}