Releases: sandstorm/UserManagement
Releases · sandstorm/UserManagement
5.1.3
5.1.2
6.0.0: Release for Neos 4.0 / Flow 5.0
Merge branch '5.0'
5.1.1: Bugfix release, containing a fix for redirectToUriAndShutdown
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
Add Reply-To Email address
Bugfix Release: Fix type hint causing 500 errors
5.0.10 Bugfix release: type hint
Bugfixes and some small enhancements
5.0.9 Minor new features: pass node to template, enhance docs
New Feature: Emit Signals during login and logout
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
5.0.6 BUGFIX: Make initial migration work for both fresh installs where all…
Bugfix Release: Migration issue
Merge pull request #19 from hhoechtl/fix/migrations [FIX] doctrine:migrate on blank Neos 3