diff --git a/src/Auth.php b/src/Auth.php index 58c38fa..f5db4f9 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -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'))); + } } }