small fixed

This commit is contained in:
Harry Bomrah 2017-12-22 03:40:17 +08:00
parent fbe9a64aaa
commit 999e568a01
2 changed files with 5 additions and 1 deletions

View File

@ -22,6 +22,10 @@ class PseudoSessionController < ApplicationController
end end
end end
def member_login_path
"/" + I18n.locale.to_s + Page.where(:module => "pseudo_member").first.url
end
def destroy_pseudo_session def destroy_pseudo_session
session.delete(:current_pseudo_user_id) session.delete(:current_pseudo_user_id)
end end

View File

@ -14,7 +14,7 @@ Rails.application.routes.draw do
end end
scope "pseudo_users" do scope "pseudo_users" do
post "/loginpseudouser", to: "pseudo_members#loginuser" post "/loginpseudouser", to: "pseudo_members#loginuser"
get "/logoutpseudouser", to: "pseudo_members#logoutuser" get "/logoutpseudouser", to: "pseudo_members#logoutuser", as: "member_logout"
post "/register_pseudo_user", to: "pseudo_members#register_user", as: "register_pseudo_user" post "/register_pseudo_user", to: "pseudo_members#register_user", as: "register_pseudo_user"
end end
end end