app/controllers/sessions_controller.rb in twitter-auth-0.1.8 vs app/controllers/sessions_controller.rb in twitter-auth-0.1.9
- old
+ new
@@ -43,9 +43,11 @@
@user = User.identify_or_create_from_access_token(@access_token)
session[:user_id] = @user.id
+ cookies[:remember_token] = @user.remember_me
+
authentication_succeeded
rescue Net::HTTPServerException => e
case e.message
when '401 "Unauthorized"'
authentication_failed('This authentication request is no longer valid. Please try again.') and return