UTRS / utrs

Unblock Ticket Request System
https://utrs.wmflabs.org/
14 stars 13 forks source link

Duplicate entry with OAuth #119

Closed dqwiki closed 7 years ago

dqwiki commented 7 years ago

Notice: Undefined index: password in /usr/UTRSgit/utrs/public_html/src/userObject.php on line 68

Fatal error: Uncaught exception 'UTRSDatabaseException' with message 'A database error occured when attempting to process your request: array ( 0 => '23000', 1 => 1062, 2 => 'Duplicate entry \'dougweller@gmail.com\' for key \'email\, )' in /usr/UTRSgit/utrs/public_html/src/userObject.php:110 Stack trace: #0 /usr/UTRSgit/utrs/public_html/src/userObject.php(81): UTRSUser->insert() #1 /usr/UTRSgit/utrs/public_html/login.php(187): UTRSUser->__construct(Array, false, Array) #2 {main} thrown in /usr/UTRSgit/utrs/public_html/src/userObject.php on line 110

dqwiki commented 7 years ago

Looks like the issue was we were checking the wiki account from oauth against usernames, not wiki account on UTRS. Patch has been deployed.