From fbe9a64aaa4d0516e0a52e0f2aaa18a9663777a6 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 21 Sep 2017 21:49:51 +0800 Subject: [PATCH] added logout method --- app/controllers/pseudo_members_controller.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/pseudo_members_controller.rb b/app/controllers/pseudo_members_controller.rb index 0f52069..68c37b3 100644 --- a/app/controllers/pseudo_members_controller.rb +++ b/app/controllers/pseudo_members_controller.rb @@ -76,8 +76,9 @@ class PseudoMembersController < PseudoSessionController end def logoutuser - destroy_cpanel_session - redirect_to member_login_path + destroy_pseudo_session + loginpath = "/" + I18n.locale.to_s + Page.where(:module => "pseudo_member").first.url + redirect_to loginpath end def loginuser