Skip to content

Routing error when 2fa page on subdomain #151

Open
@dachinat

Description

@dachinat

Let's say you have set-up two factor authentication on sub-domain "admin.example.com"

Scenario:
Log-in to get prompted for 2nd factor code
Don't enter your code, navigate to "example.com" without subdomain
You'll get a routing error. Gem tries to show 2nd factor form page.

Possible fix:

Replace path with url in two_factor_authentication/controllers/helpers.rb:33

change_path = "#{scope}_two_factor_authentication_url"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions