AttributeError: 'User' object has no attribute 'person_in_team'

Bug #1476255 reported by Natalia Bidart
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical SSO provider
Fix Released
Medium
Natalia Bidart

Bug Description

The method authenticate_user on src/identityprovider/login.py is returning an instance of User, so we need to pinpoint why to decide the right fix.

Related branches

Changed in canonical-identity-provider:
assignee: nobody → Natalia Bidart (nataliabidart)
importance: Undecided → Medium
status: New → Incomplete
Changed in canonical-identity-provider:
status: Incomplete → Fix Committed
Revision history for this message
Natalia Bidart (nataliabidart) wrote :

Confirmed this is being triggered by an account that had manually set up a password to the User instance instead to the account.

Removing the django.contrib.auth.backends.ModelBackend from AUTHENTICATION_BACKENDS to avoid returning oopses instead of login errors (password mismatch).

Changed in canonical-identity-provider:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.