v0.5.0
-
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" }