Signed in users are now redirected to main page if they try to access root (#1726)

This commit is contained in:
Ahmad Farhat
2020-06-02 16:42:15 -04:00
committed by GitHub
parent 9cf7e53c99
commit 737d39dce9
4 changed files with 19 additions and 7 deletions

View File

@ -22,5 +22,7 @@ class MainController < ApplicationController
def index
# Store invite token
session[:invite_token] = params[:invite_token] if params[:invite_token] && invite_registration
redirect_to home_page if current_user
end
end