| Total Complexity | 6 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 16 | class Method implements MethodInterface |
||
| 17 | { |
||
| 18 | public function getURLSegment(): string |
||
| 19 | { |
||
| 20 | return 'totp'; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function getLoginHandler(): LoginHandlerInterface |
||
| 24 | { |
||
| 25 | return Injector::inst()->create(LoginHandler::class); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getRegisterHandler(): RegisterHandlerInterface |
||
| 29 | { |
||
| 30 | return Injector::inst()->create(RegisterHandler::class); |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getThumbnail(): string |
||
| 34 | { |
||
| 35 | return ModuleLoader::getModule('silverstripe/totp-authenticator') |
||
| 36 | ->getResource('client/dist/images/totp.svg') |
||
| 37 | ->getURL(); |
||
| 38 | } |
||
| 39 | |||
| 40 | public function applyRequirements(): void |
||
| 44 | } |
||
| 45 | |||
| 46 | public function getDetails(): AvailableMethodDetailsInterface |
||
| 47 | { |
||
| 49 | } |
||
| 50 | } |
||
| 51 |