Neos\Neos\Controller\Module\User\UserSettingsController::updateAccountAction PHP Method

updateAccountAction() public method

Update a given account, ie. the password
public updateAccountAction ( array $password = [] ) : void
$password array Expects an array in the format array('', '')
return void
    public function updateAccountAction(array $password = array())
    {
        $user = $this->currentUser;
        $password = array_shift($password);
        if (strlen(trim(strval($password))) > 0) {
            $this->userService->setUserPassword($user, $password);
            $this->addFlashMessage('The password has been updated.', 'Password updated', Message::SEVERITY_OK);
        }
        $this->redirect('index');
    }