diff --git a/app/controllers/auth_controller.rb b/app/controllers/auth_controller.rb
index bd380c519c9f66f427a6a3896e50d7d81ab75dfd..89accfe57ca8bad921479697a8431fadabb08aa1 100644
--- a/app/controllers/auth_controller.rb
+++ b/app/controllers/auth_controller.rb
@@ -26,6 +26,20 @@ class AuthController < ApplicationController
         render json: { emails: emails }, status: 200
     end
 
+    def get_ids
+        emails = params["auth"]["emails"]
+        ids = []
+        if emails.kind_of?(Array)
+            emails.each do |e|
+                ids.push(User.find_by(email: e).id)
+            end
+        else
+            ids.push(User.find_by(email: emails).id)
+        end
+        render json: { ids: ids }, status: 200
+
+    end
+
     def password_reset_token
         token, hashed_token = Devise.token_generator.generate(User, :reset_password_token)
         user = User.find_by(email: params["email"])