Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/storage/PhabricatorUserLog.php
| Show All 34 Lines | final class PhabricatorUserLog extends PhabricatorUserDAO | ||||
| const ACTION_ENTER_HISEC = 'hisec-enter'; | const ACTION_ENTER_HISEC = 'hisec-enter'; | ||||
| const ACTION_EXIT_HISEC = 'hisec-exit'; | const ACTION_EXIT_HISEC = 'hisec-exit'; | ||||
| const ACTION_FAIL_HISEC = 'hisec-fail'; | const ACTION_FAIL_HISEC = 'hisec-fail'; | ||||
| const ACTION_MULTI_ADD = 'multi-add'; | const ACTION_MULTI_ADD = 'multi-add'; | ||||
| const ACTION_MULTI_REMOVE = 'multi-remove'; | const ACTION_MULTI_REMOVE = 'multi-remove'; | ||||
| const ACTION_WEBPUSH_ADD = 'webpush-add'; | |||||
| const ACTION_WEBPUSH_REMOVE = 'webpush-remove'; | |||||
| protected $actorPHID; | protected $actorPHID; | ||||
| protected $userPHID; | protected $userPHID; | ||||
| protected $action; | protected $action; | ||||
| protected $oldValue; | protected $oldValue; | ||||
| protected $newValue; | protected $newValue; | ||||
| protected $details = array(); | protected $details = array(); | ||||
| protected $remoteAddr; | protected $remoteAddr; | ||||
| protected $session; | protected $session; | ||||
| Show All 27 Lines | return array( | ||||
| self::ACTION_EMAIL_REASSIGN => pht('Email: Reassign'), | self::ACTION_EMAIL_REASSIGN => pht('Email: Reassign'), | ||||
| self::ACTION_CHANGE_PASSWORD => pht('Change Password'), | self::ACTION_CHANGE_PASSWORD => pht('Change Password'), | ||||
| self::ACTION_CHANGE_USERNAME => pht('Change Username'), | self::ACTION_CHANGE_USERNAME => pht('Change Username'), | ||||
| self::ACTION_ENTER_HISEC => pht('Hisec: Enter'), | self::ACTION_ENTER_HISEC => pht('Hisec: Enter'), | ||||
| self::ACTION_EXIT_HISEC => pht('Hisec: Exit'), | self::ACTION_EXIT_HISEC => pht('Hisec: Exit'), | ||||
| self::ACTION_FAIL_HISEC => pht('Hisec: Failed Attempt'), | self::ACTION_FAIL_HISEC => pht('Hisec: Failed Attempt'), | ||||
| self::ACTION_MULTI_ADD => pht('Multi-Factor: Add Factor'), | self::ACTION_MULTI_ADD => pht('Multi-Factor: Add Factor'), | ||||
| self::ACTION_MULTI_REMOVE => pht('Multi-Factor: Remove Factor'), | self::ACTION_MULTI_REMOVE => pht('Multi-Factor: Remove Factor'), | ||||
| self::ACTION_WEBPUSH_ADD => pht('Web Push: Add browser'), | |||||
| self::ACTION_WEBPUSH_REMOVE => pht('Web Push: Remove browser'), | |||||
| ); | ); | ||||
| } | } | ||||
| public static function initializeNewLog( | public static function initializeNewLog( | ||||
| PhabricatorUser $actor = null, | PhabricatorUser $actor = null, | ||||
| $object_phid = null, | $object_phid = null, | ||||
| $action = null) { | $action = null) { | ||||
| ▲ Show 20 Lines • Show All 120 Lines • Show Last 20 Lines | |||||