Skip to content

Releases: sandstorm/UserManagement

5.1.3: BUGFIX: Fix version constraint - UserManagement branch 5.x is intende…

05 Sep 07:43
Compare
Choose a tag to compare

5.1.2

05 Sep 07:29
Compare
Choose a tag to compare
BUGFIX: Fix typos in german template

6.0.0: Release for Neos 4.0 / Flow 5.0

17 Aug 07:27
Compare
Choose a tag to compare

5.1.1: Bugfix release, containing a fix for redirectToUriAndShutdown

17 Aug 07:26
caa91c8
Compare
Choose a tag to compare
Merge pull request #34 from punktDeForks/fix/headers-sent-twice

FIX: Headers being sent twice in redirectToUriAndShutdown

5.1.0: Merge pull request #33 from punktDeForks/AddReplyToEmailAddress

04 Jul 08:08
155dbb0
Compare
Choose a tag to compare

Bugfix Release: Fix type hint causing 500 errors

05 Jul 08:31
Compare
Choose a tag to compare
5.0.10

Bugfix release: type hint

Bugfixes and some small enhancements

04 Jul 12:33
Compare
Choose a tag to compare
5.0.9

Minor new features: pass node to template, enhance docs

New Feature: Emit Signals during login and logout

03 Jul 14:58
Compare
Choose a tag to compare

Hooking into the login/logout process

The UserManagement package emits three signals during the login and logout process, into which you can hook using Flows Signals and Slots mechanism. You could for example use this to set additional cookies when a user logs in, e.g. to enable JWT authentication with another service. Here is an example of using all three, you could copy this into your own Package.php file:

public function boot(Bootstrap $bootstrap) {
    $dispatcher = $bootstrap->getSignalSlotDispatcher();
    $dispatcher->connect(
        \Sandstorm\UserManagement\Controller\LoginController::class, 'authenticationSuccess',
        \Your\Package\Domain\Service\ExampleService::class, 'onAuthenticationSuccess'
    );
    $dispatcher->connect(
        \Sandstorm\UserManagement\Controller\LoginController::class, 'authenticationFailure',
        \Your\Package\Domain\Service\ExampleService::class, 'onAuthenticationFailure'
    );
    $dispatcher->connect(
        \Sandstorm\UserManagement\Controller\LoginController::class, 'logout',
        \Your\Package\Domain\Service\ExampleService::class, 'onLogout'
    );
}

Your example service could then look like this:

namespace Your\Package\Domain\Service;

use Neos\Flow\Http\Request;
use Neos\Flow\Mvc\Controller\ControllerContext;
use Neos\Flow\Security\Exception\AuthenticationRequiredException;

class ExampleService
{
    public function onAuthenticationSuccess(ControllerContext $controllerContext, Request $originalRequest = null)
    {
        // Do custom stuff here
    }

    public function onAuthenticationFailure(ControllerContext $controllerContext, AuthenticationRequiredException $exception = null)
    {
        // Do custom stuff here
    }

    public function onLogout(ControllerContext $controllerContext)
    {
        // Do custom stuff here
    }
}

BUGFIX Release: Finally fix migration issue to work for fresh installs and updates

01 Jun 13:54
Compare
Choose a tag to compare
BUGFIX: Make initial migration work for both fresh installs where all…

… migrations (Flow+UserManagement) are run at once, as well as cases where Flow is already installed and UserManagement is added later.

Bugfix Release: Migration issue

01 Jun 12:25
Compare
Choose a tag to compare
Merge pull request #19 from hhoechtl/fix/migrations

[FIX] doctrine:migrate on blank Neos 3