#3611 Infinite redirects for user without CLA
Closed: Fixed 5 years ago Opened 5 years ago by akanksham.

When a user without a CLA signs in, they're redirected to ui_ns.index,

    if authenticated() and flask.request.path == "/":
        return flask.redirect(flask.url_for("ui_ns.userdash_projects"))

This redirects them to ui_ns.userdash_projects, hitting the login_required decorator,

        elif auth_method == "fas" and not flask.g.fas_user.cla_done:
            flask.flash(
                flask.Markup(
                    'You must <a href="https://admin.fedoraproject'
                    '.org/accounts/">sign the FPCA</a> (Fedora Project '
                    "Contributor Agreement) to use pagure"
                ),
                "errors",
            )
            return flask.redirect(flask.url_for("ui_ns.index"))

Which again throws it back to ui_ns.index

Just happened with me. :|


Metadata Update from @ryanlerch:
- Issue set to the milestone: 5.0

5 years ago

Metadata Update from @pingou:
- Issue tagged with: bug

5 years ago

Metadata Update from @pingou:
- Issue assigned to pingou

5 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #3641 Merged 5 years ago