| Total Complexity | 6 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Method implements MethodInterface, TestOnly |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Get a URL segment for this method. This will be used in URL paths for performing authentication by this method |
||
| 15 | * |
||
| 16 | * @return string |
||
| 17 | */ |
||
| 18 | public function getURLSegment() |
||
| 19 | { |
||
| 20 | return 'basic-math'; |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Return the LoginHandler that is used to start and verify login attempts with this method |
||
| 25 | * |
||
| 26 | * @return LoginHandlerInterface |
||
| 27 | */ |
||
| 28 | public function getLoginHandler() |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Return the RegisterHandler that is used to perform registrations with this method |
||
| 35 | * |
||
| 36 | * @return RegisterHandlerInterface |
||
| 37 | */ |
||
| 38 | public function getRegisterHandler() |
||
| 39 | { |
||
| 40 | return new MethodRegisterHandler(); |
||
| 41 | } |
||
| 42 | |||
| 43 | public function getThumbnail() |
||
| 44 | { |
||
| 45 | return ModuleLoader::getModule('silverstripe/mfa')->getResource('client/dist/images/totp.svg')->getURL(); |
||
| 46 | } |
||
| 47 | |||
| 48 | public function getDetails() |
||
| 51 | } |
||
| 52 | |||
| 53 | public function applyRequirements() |
||
| 54 | { |
||
| 58 |