Sha256: 0b24b5a5d0b83792dfd9bf5b2e3b576f3a8d3321a4441cada7889f5e4991a1e1

Contents?: true

Size: 530 Bytes

Versions: 35

Compression:

Stored size: 530 Bytes

Contents

= Change redirect destination

You can change the redirect destination for any Rodauth action by overriding
the corresponding <tt>*_redirect</tt> method:

  plugin :rodauth do
    enable :login, :logout, :create_account, :reset_password

    # Redirect to "/dashboard" after login
    login_redirect "/dashboard"

    # Redirect to wherever login redirects to after creating account
    create_account_redirect { login_redirect }

    # Redirect to login page after password reset
    reset_password_redirect { login_path }
  end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
rodauth-2.36.0 doc/guides/redirects.rdoc
rodauth-2.34.0 doc/guides/redirects.rdoc
rodauth-2.33.0 doc/guides/redirects.rdoc
rodauth-2.32.0 doc/guides/redirects.rdoc
rodauth-2.31.0 doc/guides/redirects.rdoc
rodauth-2.30.0 doc/guides/redirects.rdoc
rodauth-2.29.0 doc/guides/redirects.rdoc
rodauth-2.28.0 doc/guides/redirects.rdoc
rodauth-2.27.0 doc/guides/redirects.rdoc
rodauth-2.26.1 doc/guides/redirects.rdoc
rodauth-2.26.0 doc/guides/redirects.rdoc
rodauth-2.25.0 doc/guides/redirects.rdoc
rodauth-2.24.0 doc/guides/redirects.rdoc
rodauth-2.23.0 doc/guides/redirects.rdoc
rodauth-2.22.0 doc/guides/redirects.rdoc
rodauth-2.21.0 doc/guides/redirects.rdoc
rodauth-2.20.0 doc/guides/redirects.rdoc
rodauth-2.19.0 doc/guides/redirects.rdoc
rodauth-2.18.0 doc/guides/redirects.rdoc
rodauth-2.17.0 doc/guides/redirects.rdoc