1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-22 18:28:47 +02:00
phorge-phorge/src/applications/auth/controller
epriestley 70fd96037b Consolidate user editing code
Summary:
  - We currently have some bugs in account creation due to nontransactional user/email editing.
    - We save $user, then try to save $email. This may fail for various reasons, commonly because the email isn't unique.
    - This leaves us with a $user with no email.
  - Also, logging of edits is somewhat inconsistent across various edit mechanisms.
  - Move all editing to a `PhabricatorUserEditor` class.
  - Handle some broken-data cases more gracefully.

Test Plan:
  - Created and edited a user with `accountadmin`.
  - Created a user with `add_user.php`
  - Created and edited a user with People editor.
  - Created a user with OAuth.
  - Edited user information via Settings.
  - Tried to create an OAuth user with a duplicate email address, got a proper error.
  - Tried to create a user via People with a duplicate email address, got a proper error.

Reviewers: btrahan, vrana, jungejason

Reviewed By: btrahan

CC: tberman, aran

Maniphest Tasks: T1184

Differential Revision: https://secure.phabricator.com/D2569
2012-05-25 07:30:44 -07:00
..
base Basic Facebook OAuth implementation. 2011-01-30 21:28:45 -08:00
disabled Add "final" to all Phabricator "Controller" classes 2012-03-09 15:46:25 -08:00
email Allow users to have multiple email addresses, and verify emails 2012-05-07 10:29:33 -07:00
emailtoken Allow users to have multiple email addresses, and verify emails 2012-05-07 10:29:33 -07:00
login Allow users to have multiple email addresses, and verify emails 2012-05-07 10:29:33 -07:00
logout Allow installs to require email verification 2012-05-21 12:47:38 -07:00
mustverify Allow installs to require email verification 2012-05-21 12:47:38 -07:00
oauth OAuth -- add support for Disqus 2012-05-08 12:08:05 -07:00
oauthdiagnostics Try to diagnose App Login only for OAuth providers which support it 2012-05-04 16:16:29 -07:00
oauthregistration Consolidate user editing code 2012-05-25 07:30:44 -07:00
refresh Add "final" to all Phabricator "Controller" classes 2012-03-09 15:46:25 -08:00
unlink Add "final" to all Phabricator "Controller" classes 2012-03-09 15:46:25 -08:00
validate Add "final" to all Phabricator "Controller" classes 2012-03-09 15:46:25 -08:00