mirror of
https://github.com/heartcombo/devise.git
synced 2026-02-03 02:55:07 -05:00
Stores the requested page before signing in and redirect the user to the stored uri after.
This commit is contained in:
@@ -11,7 +11,7 @@ class SessionsController < ApplicationController
|
||||
def create
|
||||
if sign_in(resource_name)
|
||||
set_flash_message :success, :signed_in
|
||||
redirect_to root_path
|
||||
redirect_back_or_to root_path
|
||||
else
|
||||
unauthenticated!
|
||||
render :new
|
||||
|
||||
Reference in New Issue
Block a user