mirror of
https://0xacab.org/sutty/sutty
synced 2025-01-19 19:53:39 +00:00
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]
|
session[:lang] = params[:lang]
|
||||||
|
|
||||||
if authenticated?
|
if authenticated?
|
||||||
# TODO enviar a la URL de donde vinimos
|
redirect_to request.referer || sites_path
|
||||||
redirect_to sites_path
|
|
||||||
else
|
else
|
||||||
flash[:danger] = t('login.error')
|
flash[:danger] = t('login.error')
|
||||||
render 'login/new'
|
render 'login/new'
|
||||||
|
|
Loading…
Reference in a new issue