Sha256: 6e3c80b189dbb1ab343c932e8bb9c7386988f23b1452bde9d9a0c0858df914cb

Contents?: true

Size: 419 Bytes

Versions: 35

Compression:

Stored size: 419 Bytes

Contents

= Skip login page if already authenticated

In some cases it may be useful to skip login/registration pages when the user
is already logged in. This can be achieved as follows.  Note that this only
matters if the user manually navigates to the login or create account pages.

  plugin :rodauth do
    # Redirect logged in users to the wherever login redirects to
    already_logged_in { redirect login_redirect }
  end

Version data entries

35 entries across 35 versions & 1 rubygems

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