Treeat user as logged in after a password reset
[rails.git] / app / controllers / user_controller.rb
index 394f8676f26987e3978fc2b0ecf99d2012332f95..766ab37d1396e437c4826b8d02b78b8e923c9fe8 100644 (file)
@@ -182,7 +182,7 @@ class UserController < ApplicationController
           if @user.save
             token.destroy
             flash[:notice] = t "user.reset_password.flash changed"
-            redirect_to :action => "login"
+            successful_login(@user)
           end
         end
       else