From bba20865abd7e710f6b707239b0343893b7b06a6 Mon Sep 17 00:00:00 2001 From: Simon Asika Date: Fri, 17 Nov 2023 00:09:26 +0800 Subject: [PATCH] exposes --- composer.json | 3 +++ src/Module/Front/Auth/AuthController.php | 3 +-- src/User/UserCaster.php | 17 ----------------- 3 files changed, 4 insertions(+), 19 deletions(-) delete mode 100644 src/User/UserCaster.php diff --git a/composer.json b/composer.json index 12fdd5f0..71b47e5e 100644 --- a/composer.json +++ b/composer.json @@ -43,6 +43,9 @@ "wowjs": "^1.1.3", "jarallax": "^1.12.8" }, + "exposes": [ + "@windwalker-io/srp" + ], "link": "assets/" } }, diff --git a/src/Module/Front/Auth/AuthController.php b/src/Module/Front/Auth/AuthController.php index f478faa8..b071661f 100644 --- a/src/Module/Front/Auth/AuthController.php +++ b/src/Module/Front/Auth/AuthController.php @@ -127,8 +127,7 @@ public function register( $rememberData = $user; unset($rememberData['password'], $rememberData['password2']); - show($app->input()); - exit(' @Checkpoint'); + $app->getState()->remember('reg.data', $rememberData); /** @var User $user */ diff --git a/src/User/UserCaster.php b/src/User/UserCaster.php deleted file mode 100644 index f23b618b..00000000 --- a/src/User/UserCaster.php +++ /dev/null @@ -1,17 +0,0 @@ -