redirigir al referer
This commit is contained in:
parent
d5bb40533c
commit
6918ef4eeb
1 changed files with 1 additions and 2 deletions
|
@ -15,8 +15,7 @@ class LoginController < ApplicationController
|
|||
session[:lang] = params[:lang]
|
||||
|
||||
if authenticated?
|
||||
# TODO enviar a la URL de donde vinimos
|
||||
redirect_to sites_path
|
||||
redirect_to request.referer || sites_path
|
||||
else
|
||||
flash[:danger] = t('login.error')
|
||||
render 'login/new'
|
||||
|
|
Loading…
Reference in a new issue