From 9d0251b8035e8e11c50d0c8dcdf0f1b839fa4671 Mon Sep 17 00:00:00 2001 From: Michael Darko Date: Sun, 7 Nov 2021 09:18:42 +0000 Subject: [PATCH] :ambulance: switched to static methods --- src/Auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Auth.php b/src/Auth.php index 838df29..a4f965e 100755 --- a/src/Auth.php +++ b/src/Auth.php @@ -48,7 +48,7 @@ public static function autoConnect(): void */ public static function login(string $table, array $credentials, array $validate = []) { - return new Auth\Login($table, $credentials, $validate); + return Auth\Login::user($table, $credentials, $validate); } /** @@ -63,7 +63,7 @@ public static function login(string $table, array $credentials, array $validate */ public static function register(string $table, array $credentials, array $uniques = [], array $validate = []) { - return new Auth\Register($table, $credentials, $uniques, $validate); + return Auth\Register::user($table, $credentials, $uniques, $validate); } /**