You are here

public function UserOneSettingsForm::getFailedLoginAttemptsOptions in User One 8

Get allowed failed login attempts for an IP address.

Return value

array An array of options.

1 call to UserOneSettingsForm::getFailedLoginAttemptsOptions()
UserOneSettingsForm::buildForm in src/Form/UserOneSettingsForm.php
Form constructor.

File

src/Form/UserOneSettingsForm.php, line 134

Class

UserOneSettingsForm
User One configuration form.

Namespace

Drupal\userone\Form

Code

public function getFailedLoginAttemptsOptions() {
  return [
    1 => 1,
    2 => 2,
    3 => 3,
    4 => 4,
    5 => 5,
    10 => 10,
    25 => 25,
    50 => 50,
    75 => 75,
    100 => 100,
    250 => 250,
  ];
}