From 7d90634eedb478092e4d50c9bcf8b46387b3cd3c Mon Sep 17 00:00:00 2001 From: rt00492 <rt00492@surrey.ac.uk> Date: Sun, 24 Apr 2022 16:58:45 +0100 Subject: [PATCH] Cleaning up application controller --- app/controllers/application_controller.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index dc7aeda..630ac35 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -11,19 +11,12 @@ class ApplicationController < ActionController::Base }.to_json, :headers => { 'Content-Type' => 'application/json'}) - puts session[:user_id] session[:user_id] = login['data']['id'] - puts "1" session[:jwt_token] = login.header['authorization'] - puts "1" session[:logged_in] = true - puts "1" - - - puts "1" - + render "home" end -- GitLab