added logout method

This commit is contained in:
Harry Bomrah 2017-09-21 21:49:51 +08:00
parent 2c87424b0d
commit fbe9a64aaa
1 changed files with 3 additions and 2 deletions

View File

@ -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