#3611 Infinite redirects for user without CLA
Closed: Fixed 2 years ago Opened 2 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:
                    'You must <a href="https://admin.fedoraproject'
                    '.org/accounts/">sign the FPCA</a> (Fedora Project '
                    "Contributor Agreement) to use pagure"
            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

2 years ago

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

2 years ago

Metadata Update from @pingou:
- Issue assigned to pingou

2 years ago

Login to comment on this ticket.

Related Pull Requests
  • #3641 Merged 2 years ago