fedora-infra / fas

Fedora Account System
https://admin.fedoraproject.org/accounts
GNU General Public License v2.0
40 stars 50 forks source link

fix account verification process #246

Closed ryanlerch closed 7 years ago

ryanlerch commented 7 years ago
ProgrammingError: (psycopg2.ProgrammingError) missing FROM-clause entry for table "accountstatus"
LINE 1: UPDATE people SET password_token=NULL, status=AccountStatus....
                                                      ^
 [SQL: 'UPDATE people SET password_token=%(password_token)s, status=%(status)s, update_timestamp=CURRENT_TIMESTAMP WHERE people.id = %(people_id)s'] [parameters: {'status': <AccountStatus.ACTIVE: 1>, 'people_id': 10007, 'password_token': 
None}]

changing

self.person.status = AccountStatus.ACTIVE

to

self.person.status = AccountStatus.ACTIVE.value

fixed this issue