summaryrefslogtreecommitdiffhomepage
path: root/app/controllers/api/v1/auth_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/api/v1/auth_controller.rb')
-rw-r--r--app/controllers/api/v1/auth_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/api/v1/auth_controller.rb b/app/controllers/api/v1/auth_controller.rb
index 3a248cd..590be3b 100644
--- a/app/controllers/api/v1/auth_controller.rb
+++ b/app/controllers/api/v1/auth_controller.rb
@@ -14,8 +14,8 @@ class Api::V1::AuthController < ApplicationController
puts result
render json: result
else
- puts "Not logged in -- this should show up"
- render json: { info: "Not logged in -- change thingies" }, status: 401
+ puts "Not logged in"
+ render json: { info: "Not logged in" }, status: 401
end
end
def callback
@@ -51,7 +51,7 @@ class Api::V1::AuthController < ApplicationController
user.user_name = user_data["login"]
user.save
#redirect_to 'http://localhost:5173/', allow_other_host: true
- redirect_to 'https://malcz.com/', allow_other_host: true
+ redirect_to "#{ENV['ROOT_DOMAIN']}/closewindow", allow_other_host: true
end
private