Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/storage/PhabricatorUserLog.php
Show All 24 Lines | final class PhabricatorUserLog extends PhabricatorUserDAO | ||||
const ACTION_EMAIL_ADD = 'email-add'; | const ACTION_EMAIL_ADD = 'email-add'; | ||||
const ACTION_CHANGE_PASSWORD = 'change-password'; | const ACTION_CHANGE_PASSWORD = 'change-password'; | ||||
const ACTION_CHANGE_USERNAME = 'change-username'; | const ACTION_CHANGE_USERNAME = 'change-username'; | ||||
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_MULTI_ADD = 'multi-add'; | |||||
const ACTION_MULTI_REMOVE = 'multi-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 17 Lines | return array( | ||||
=> pht('Conduit: Read Certificate Failure'), | => pht('Conduit: Read Certificate Failure'), | ||||
self::ACTION_EMAIL_PRIMARY => pht('Email: Change Primary'), | self::ACTION_EMAIL_PRIMARY => pht('Email: Change Primary'), | ||||
self::ACTION_EMAIL_ADD => pht('Email: Add Address'), | self::ACTION_EMAIL_ADD => pht('Email: Add Address'), | ||||
self::ACTION_EMAIL_REMOVE => pht('Email: Remove Address'), | self::ACTION_EMAIL_REMOVE => pht('Email: Remove Address'), | ||||
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_MULTI_ADD => pht('Multi-Factor: Add Factor'), | |||||
self::ACTION_MULTI_REMOVE => pht('Multi-Factor: Remove Factor'), | |||||
); | ); | ||||
} | } | ||||
public static function initializeNewLog( | public static function initializeNewLog( | ||||
PhabricatorUser $actor = null, | PhabricatorUser $actor = null, | ||||
$object_phid, | $object_phid, | ||||
$action) { | $action) { | ||||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |