Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Skip first login authorizations by default #144

Open
Quentinchampenois opened this issue Oct 20, 2023 · 0 comments
Open

fix: Skip first login authorizations by default #144

Quentinchampenois opened this issue Oct 20, 2023 · 0 comments

Comments

@Quentinchampenois
Copy link
Contributor

Describe the bug
A clear and concise description of what the bug is.

At the moment when the variable SKIP_FIRST_LOGIN_AUTHORIZATION is not set, customization skip first login ah is disabled and user is redirected to authorizations.

We should set the default variable to true by default in the devise controller extend

Suggestion

  def skip_authorization_handler?
    ENV.fetch("SKIP_FIRST_LOGIN_AUTHORIZATION", "true") == "true"
  end

TODO

Add necessary specs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant