@@ -89,9 +101,17 @@ class FloodUnblockAdminForm extends FormBase {
// Fetches the identifier from the form.
$identifier=$form_state->getValue('identifier');
// Set default markup.
$top_markup=$this->t("List of IP addresses and user ID's that are blocked after multiple failed login attempts. You can remove separate entries.");
// Add link to control settings page if current user haas permission to access it.
if($this->currentUser->hasPermission('access flood control settings page')){
$top_markup.=$this->t(" You can configure the login attempt limits and time windows on the <a href=':url'>Flood Control settings page</a>.</p>",[':url'=>Url::fromRoute('flood_control.settings')->toString()]);
}
// Provides introduction to the table.
$form['top_markup']=[
'#markup'=>$this->t("<p>List of IP addresses and user ID's that are blocked after multiple failed login attempts. You can remove separate entries. You can configure the login attempt limits and time windows on the <a href=':url'>Flood Control settings page</a>.</p>",[':url'=>Url::fromRoute('flood_control.settings')->toString()]),