Use sign_in and authenticate methods.

This commit is contained in:
José Valim
2009-10-18 15:01:56 -02:00
parent 9051d842c0
commit b0a2da72b5
7 changed files with 34 additions and 37 deletions

View File

@@ -9,7 +9,7 @@ class SessionsController < ApplicationController
# POST /resource/sign_in
def create
if sign_in(resource_name)
if authenticate(resource_name)
set_flash_message :success, :signed_in
redirect_back_or_to root_path
else