lib/simple_auth/session.rb in simple_auth-0.1.1 vs lib/simple_auth/session.rb in simple_auth-0.1.2
- old
+ new
@@ -79,9 +79,10 @@
def valid?
if record
true
else
errors.add_to_base I18n.translate("simple_auth.sessions.invalid_credentials")
+ controller.session[:record_id] = nil
false
end
end
def record