diff --git a/app/controllers/auth_controller.rb b/app/controllers/auth_controller.rb index 9e49d9bcc81beb7e102cc6e95342e9d2166d5d00..be7280c735fce6456973047e89b063bade3e6845 100644 --- a/app/controllers/auth_controller.rb +++ b/app/controllers/auth_controller.rb @@ -15,15 +15,11 @@ class AuthController < ApplicationController def get_email ids = params["auth"]["ids"] - if authenticate_user! - emails = [] - ids.each do |i| - emails.push(User.find_by(id: i).email) - end - render json: { emails: emails }, status: 200 - else - auth_fail - end + emails = [] + ids.each do |i| + emails.push(User.find_by(id: i).email) + + render json: { emails: emails }, status: 200 end def password_reset_token