Skip to content

What if someone has to login again after a POST? #5

@crackedeggs1

Description

@crackedeggs1

So consider this scenario:

  1. Someone logins in via TFA
  2. Someone fills in a form that will submit over POST to x.php
  3. Their TFA session expires
  4. They submit the form.
  5. They are redirected to the TFA login.php script.

As it is currently, I think all the form fields get lost. It would be nice to preserve them and submit them to the target script after they login again.

What are your thoughts on the challenges of doing this?

I think we might have to try to rewrite to the login script in nginx rather than redirecting, which might require some changes to the current nginx.conf instructions, and for the login script in this case, have a separate "thank you for logging in" screen that fixes the referrer back to the original and submits the data via Javascript.

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