Elgg  Version master
DisablePasswordAutocompleteHandler.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Input;
4 
11 
19  public function __invoke(\Elgg\Event $event) {
20  if (!_elgg_services()->config->security_disable_password_autocomplete) {
21  return;
22  }
23 
24  $return_value = $event->getValue();
25 
26  $return_value['autocomplete'] = 'off';
27 
28  return $return_value;
29  }
30 }
__invoke(\Elgg\Event $event)
Disable the autocomplete feature on password fields.
_elgg_services()
Get the global service provider.
Definition: elgglib.php:351
Models an event passed to event handlers.
Definition: Event.php:11
Disables password autocomplete for input/password.