---
title: "Feature: #87726 - Extend FrontendLoginController Hook to validate password"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-87726"
source: "Changelog/10.0/Feature-87726-ExtendFrontendLoginControllerHookToValidatePassword.rst"
typo3-version: "10.0"
typo3-major: 10
type: "feature"
issue: 87726
forge: "https://forge.typo3.org/issues/87726"
tags: ["Frontend", "ext:felogin", "PHP-API"]
rendered: "2026-09-29T06:32:46+00:00"
---

# Feature: #87726 - Extend FrontendLoginController Hook to validate password {#feature-87726}

See [forge#87726](https://forge.typo3.org/issues/87726)

## Description {#description}

The Hook `$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['password_changed']` is extended to validate the given password.
In the Hook you can set a custom validation message.

## Impact {#impact}

You can now use the hook via:

```php
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['password_changed'][] = \Your\Namespace\Hooks\MyBeautifulHook::class . '->passwordChanged';
```

### Example implementation: {#example-implementation}

```php
public function passwordChanged(array &$params)
{
    if($params['newPasswordUnencrypted']==='password'){
        $params['passwordValid']=FALSE;
        $params['passwordInvalidMessage']='<p class="text-danger">Do not use password as password</p>';
    }
}
```
