Differential D15479 Diff 37312 src/applications/auth/tokentype/PhabricatorAuthOneTimeLoginTemporaryTokenType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/tokentype/PhabricatorAuthOneTimeLoginTemporaryTokenType.php
| <?php | <?php | ||||
| final class PhabricatorAuthOneTimeLoginTemporaryTokenType | final class PhabricatorAuthOneTimeLoginTemporaryTokenType | ||||
| extends PhabricatorAuthTemporaryTokenType { | extends PhabricatorAuthTemporaryTokenType { | ||||
| const TOKENTYPE = 'login:onetime'; | const TOKENTYPE = 'login:onetime'; | ||||
| public function getTokenTypeDisplayName() { | |||||
| return pht('One-Time Login'); | |||||
| } | |||||
| public function getTokenReadableTypeName( | public function getTokenReadableTypeName( | ||||
| PhabricatorAuthTemporaryToken $token) { | PhabricatorAuthTemporaryToken $token) { | ||||
| return pht('One-Time Login Token'); | return pht('One-Time Login Token'); | ||||
| } | } | ||||
| public function isTokenRevocable(PhabricatorAuthTemporaryToken $token) { | public function isTokenRevocable(PhabricatorAuthTemporaryToken $token) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| } | } | ||||