Skip to content

Commit ef2cf36

Browse files
Provide login redirect in prod as well as dev
1 parent 2173687 commit ef2cf36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def initialize
391391
if account = Account.authenticate(params[:email], params[:password])
392392
session[:account_id] = account.id
393393
flash[:notice] = "Logged in successfully."
394-
redirect url(:home)
394+
redirect params[:redir] or url(:home)
395395
elsif Padrino.env == :development && params[:bypass]
396396
account = Account.first
397397
session[:account_id] = account.id

0 commit comments

Comments
 (0)