| @@ 40-48 (lines=9) @@ | ||
| 37 | $this->io = $io; |
|
| 38 | } |
|
| 39 | ||
| 40 | public function getDisabled() |
|
| 41 | { |
|
| 42 | $disabledCommonNames = []; |
|
| 43 | foreach ($this->io->readFolder($this->configDir, '*') as $f) { |
|
| 44 | $disabledCommonNames[] = basename($f); |
|
| 45 | } |
|
| 46 | ||
| 47 | return $disabledCommonNames; |
|
| 48 | } |
|
| 49 | ||
| 50 | public function getDisable($commonName) |
|
| 51 | { |
|
| @@ 43-51 (lines=9) @@ | ||
| 40 | /** |
|
| 41 | * Get a list of users that have an OTP secret set. |
|
| 42 | */ |
|
| 43 | public function getOtpSecrets() |
|
| 44 | { |
|
| 45 | $otpSecrets = []; |
|
| 46 | foreach ($this->io->readFolder($this->configDir, '*') as $f) { |
|
| 47 | $otpSecrets[] = basename($f); |
|
| 48 | } |
|
| 49 | ||
| 50 | return $otpSecrets; |
|
| 51 | } |
|
| 52 | ||
| 53 | /** |
|
| 54 | * Check whether a particular user has an OTP secret set. |
|