Skip to content

Commit 164bce4

Browse files
committed
redirect inactive account to auth action
1 parent 1d9a659 commit 164bce4

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/Filters/SessionAuth.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,12 @@ public function before(RequestInterface $request, $arguments = null)
6161
}
6262

6363
if ($user !== null && ! $user->isActivated()) {
64-
$authenticator->logout();
65-
66-
return redirect()->route('login')
67-
->with('error', lang('Auth.activationBlocked'));
64+
// If an action has been defined for register, start it up.
65+
$hasAction = $authenticator->startUpAction('register', $user);
66+
if ($hasAction) {
67+
return redirect()->route('auth-action-show')
68+
->with('error', lang('Auth.activationBlocked'));
69+
}
6870
}
6971

7072
return;

0 commit comments

Comments
 (0)