Changeset View
Changeset View
Standalone View
Standalone View
src/app/Auth/SecondFactor.php
Show First 20 Lines • Show All 221 Lines • ▼ Show 20 Lines | public function enumerate() | ||||
return []; | return []; | ||||
} | } | ||||
/** | /** | ||||
* Read data for the given key | * Read data for the given key | ||||
*/ | */ | ||||
public function read($key) | public function read($key) | ||||
{ | { | ||||
\Log::debug(__METHOD__ . ' ' . $key); | |||||
if (!isset($this->cache[$key])) { | if (!isset($this->cache[$key])) { | ||||
$factors = $this->getFactors(); | $factors = $this->getFactors(); | ||||
$this->cache[$key] = isset($factors[$key]) ? $factors[$key] : null; | $this->cache[$key] = isset($factors[$key]) ? $factors[$key] : null; | ||||
} | } | ||||
return $this->cache[$key]; | return $this->cache[$key]; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |