This commit is contained in:
parent
19c48fa617
commit
0c381ad53d
|
@ -420,7 +420,7 @@ class WechatsController < ActionController::Base
|
||||||
logger.info params
|
logger.info params
|
||||||
|
|
||||||
unless (user_binded?(open_id) || params[:state] == "invite_code" || params[:state] == "project_invite_code" || params[:state] == "blog_comment" || params[:state] == "course_notice" || params[:state] == "project_discussion" || params[:state] == "course_discussion" || params[:state] == "homework" || params[:state] == "issues" || params[:state] == "journal_for_message")
|
unless (user_binded?(open_id) || params[:state] == "invite_code" || params[:state] == "project_invite_code" || params[:state] == "blog_comment" || params[:state] == "course_notice" || params[:state] == "project_discussion" || params[:state] == "course_discussion" || params[:state] == "homework" || params[:state] == "issues" || params[:state] == "journal_for_message")
|
||||||
if !(session["login"] != nil && session["login"] == false)
|
if !(session["login"] != nil && session["login"] == false) || session["login"] == nil
|
||||||
@path = '/login'
|
@path = '/login'
|
||||||
end
|
end
|
||||||
session.delete("login")
|
session.delete("login")
|
||||||
|
|
Loading…
Reference in New Issue