Fix session invalid warning, only for development env

This commit is contained in:
Jason Lee 2020-04-01 19:15:50 +08:00
parent 3670f0dd22
commit 40c9c61a82
1 changed files with 2 additions and 0 deletions

View File

@ -84,6 +84,8 @@ module RuCaptcha
end
def warning_when_session_invalid
return unless Rails.env.development?
Rails.logger.warn "
WARNING! The session.id is blank, RuCaptcha can't work properly, please keep session available.
More details about this: https://github.com/huacnlee/rucaptcha/pull/66