mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-28 03:00:29 -04:00
Use sign_in and authenticate methods.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user