We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2173687 commit ef2cf36Copy full SHA for ef2cf36
1 file changed
app/app.rb
@@ -391,7 +391,7 @@ def initialize
391
if account = Account.authenticate(params[:email], params[:password])
392
session[:account_id] = account.id
393
flash[:notice] = "Logged in successfully."
394
- redirect url(:home)
+ redirect params[:redir] or url(:home)
395
elsif Padrino.env == :development && params[:bypass]
396
account = Account.first
397
0 commit comments