Skip to content

Commit

Permalink
SESSION_REDIRECT_ON_REGISTER
Browse files Browse the repository at this point in the history
SESSION_REDIRECT_ON_REGISTER need to be implemented, so that we can send activation email or to do other jobs.
  • Loading branch information
milosPavic authored Nov 7, 2023
1 parent 8844171 commit 99bc09b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ public static function register(array $credentials, array $uniques = [])

exit(header('location: ' . static::config('GUARD_HOME')));
} else {
exit(header('location: ' . static::config('GUARD_LOGIN')));
if (static::config('SESSION_REDIRECT_ON_REGISTER')) {
exit(header('location: ' . static::config('GUARD_LOGIN')));
}
}
}

Expand Down

0 comments on commit 99bc09b

Please sign in to comment.