Lines Matching refs:provider
193 foreach ($this->providers as $providerID => $provider) {
194 if ($providerID !== $provider->getProviderID()) {
195 $this->providers[$provider->getProviderID()] = $provider;
198 $provider->init($user);
215 $list = array_filter($list, function ($provider) use ($configured) {
216 return $configured ? $provider->isConfigured() : !$provider->isConfigured();
223 * Get the instance of the given provider
233 throw new \Exception('Uncofigured provider requested');
237 * Get the user's default provider if any
259 * Set the default provider for the user
261 * @param Provider $provider
264 public function setUserDefaultProvider($provider)
267 $setting->set('defaultmod', $provider->getProviderID());
271 * Load all available provider classes
296 $provider = $this->getUserProvider($providerID);
297 $ok = $provider->checkCode($code);
304 * Get the form to enter a code for a given provider
316 $provider = $providers[$providerID] ?? $this->getUserDefaultProvider();
317 // remove current provider from list
318 unset($providers[$provider->getProviderID()]);
329 $form->setHiddenField('2fa_provider', $provider->getProviderID());
331 $form->addFieldsetOpen($provider->getLabel());
333 $code = $provider->generateCode();
334 $info = $provider->transmitMessage($code);