We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
startUpAction()
LoginController()
1 parent a8eb256 commit 3d71e62Copy full SHA for 3d71e62
1 file changed
src/Controllers/LoginController.php
@@ -47,9 +47,14 @@ public function loginAction(): RedirectResponse
47
return redirect()->route('login')->withInput()->with('error', $result->reason());
48
}
49
50
+ // custom bit of information
51
+ $user = $result->extraInfo();
52
+ /** @var Session $authenticator */
53
+ $authenticator = auth('session')->getAuthenticator();
54
+
55
// If an action has been defined for login, start it up.
- $actionClass = setting('Auth.actions')['login'] ?? null;
- if (! empty($actionClass)) {
56
+ $hasAction = $authenticator->startUpAction('login', $user);
57
+ if ($hasAction) {
58
return redirect()->route('auth-action-show')->withCookies();
59
60
0 commit comments