提交 68780d29 编写于 作者: G Grzegorz Bizon

Fix token_set? method by checking migration status

上级 239a4f72
......@@ -88,7 +88,10 @@ module TokenAuthenticatableStrategies
def token_set?(instance)
raw_token = instance.read_attribute(encrypted_field)
raw_token ||= (insecure_strategy.get_token(instance) if fallback?)
unless fully_encrypted?
raw_token ||= insecure_strategy.get_token(instance)
end
raw_token.present?
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册