fix: force password reset on invited accounts
This commit is contained in:
parent
52d6fb51d5
commit
928345c8ea
@ -12,7 +12,7 @@ class DecideWhatToDoWithUser
|
||||
public function handle(Request $request, Closure $next): Response
|
||||
{
|
||||
if (!auth()->user() || !isCloud() || isInstanceAdmin()) {
|
||||
if (!isCloud() && showBoarding() && !in_array($request->path(), allowedPathsForBoardingAccounts())) {
|
||||
if (!isCloud() && showBoarding() && !in_array($request->path(), allowedPathsForBoardingAccounts())) {
|
||||
return redirect('boarding');
|
||||
}
|
||||
return $next($request);
|
||||
|
@ -148,6 +148,8 @@ function allowedPathsForInvalidAccounts() {
|
||||
return [
|
||||
'logout',
|
||||
'verify',
|
||||
'force-password-reset',
|
||||
'livewire/message/force-password-reset',
|
||||
'livewire/message/verify-email',
|
||||
'livewire/message/help'
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user