diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -21,6 +21,7 @@ redirect_to :action => 'login' end + #reset login, clear session def login saved_notice = flash[:notice] reset_session @@ -40,6 +41,11 @@ render :action => 'login', :layout => 'empty' end + def logout + reset_session + redirect_to root_path + end + def list prepare_list_information end