Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/factor/PhabricatorTOTPAuthFactor.php
<?php | <?php | ||||
final class PhabricatorTOTPAuthFactor extends PhabricatorAuthFactor { | final class PhabricatorTOTPAuthFactor extends PhabricatorAuthFactor { | ||||
const DIGEST_TEMPORARY_KEY = 'mfa.totp.sync'; | const DIGEST_TEMPORARY_KEY = 'mfa.totp.sync'; | ||||
public function getFactorKey() { | public function getFactorKey() { | ||||
return 'totp'; | return 'totp'; | ||||
} | } | ||||
public function getFactorName() { | public function getFactorName() { | ||||
return pht('Mobile Phone App (TOTP)'); | return pht('Mobile Phone App (TOTP)'); | ||||
} | } | ||||
public function getFactorCreateHelp() { | |||||
return pht( | |||||
'Allow users to attach a mobile authenticator application (like '. | |||||
'Google Authenticator) to their account.'); | |||||
} | |||||
public function getFactorDescription() { | public function getFactorDescription() { | ||||
return pht( | return pht( | ||||
'Attach a mobile authenticator application (like Authy '. | 'Attach a mobile authenticator application (like Authy '. | ||||
'or Google Authenticator) to your account. When you need to '. | 'or Google Authenticator) to your account. When you need to '. | ||||
'authenticate, you will enter a code shown on your phone.'); | 'authenticate, you will enter a code shown on your phone.'); | ||||
} | } | ||||
public function processAddFactorForm( | public function processAddFactorForm( | ||||
▲ Show 20 Lines • Show All 500 Lines • Show Last 20 Lines |