Skip to content

v0.5.0

Compare
Choose a tag to compare
@janko janko released this 10 Oct 16:33
· 24 commits to master since this release
2a4b71b
  • Added the omniauth_create_account? configuration method for disabling automatic account creation.

    For example, if you have OmniAuth links on both login and registration pages, and you want the OmniAuth login on the login page to only log into existing accounts, you could configure this so that it's controlled via a query parameter:

    # somewhere in your view template:
    rodauth.omniauth_request_path(:google, action: "login") #=> "/auth/github?action=login"
    # in your Rodauth configuration:
    omniauth_create_account? { omniauth_params["action"] != "login" }