From 0d317dc0cfe6ae2b6b62d711b7ae67e63555235f Mon Sep 17 00:00:00 2001 From: Geo Xalkis Date: Sun, 2 Apr 2023 06:16:40 +0300 Subject: several updates on user registration --- html/app/routes/api.php | 13 ------------- html/app/routes/frontend.php | 31 +++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 13 deletions(-) (limited to 'html/app/routes') diff --git a/html/app/routes/api.php b/html/app/routes/api.php index ecf15fb..61e485b 100644 --- a/html/app/routes/api.php +++ b/html/app/routes/api.php @@ -55,18 +55,6 @@ Route::add('/api/([0-9a-zA-Z-_]*)/([0-9]*)', */ -// user sends a registration form; -Route::add('/xml/register', function() { $x = Auth::register(); print_r($x); }, 'post'); - - -// user sends a confirmation request (alongside with some 'account' token) -Route::add('/xml/confirm-account', function() { Auth::confirm_account(); } ); - - -// user sends a reset password request) -Route::add('/xml/reset-password', function() { Auth::confirm(); } ); - - /** TEST CALLS @@ -77,7 +65,6 @@ Route::add('/xml/reset-password', function() { Auth::confirm(); } ); */ - // route for testing... // --- Route::add('/test/([0-9a-zA-Z-_\/]*)', function($test) { diff --git a/html/app/routes/frontend.php b/html/app/routes/frontend.php index 712de9a..ca91f7b 100644 --- a/html/app/routes/frontend.php +++ b/html/app/routes/frontend.php @@ -20,10 +20,41 @@ Route::notFound( function() { }); // 404 + +// Account +/////////////////////////////////////////////////////////////////////////////////////////////// + +// login +// register +// activate +// ask-reset +// reset +// profile +// edit-profile +// subscriptions +// payments +// pay +// order + + Route::add('/login', function() { Render::view('user/login'); }); Route::add('/register', function() { Render::view('user/register'); }); + + +// user sends a registration form; +Route::add('/account/register', function() { $x = Auth::register(); print_r($x); }, 'post'); + + +Route::add('/account/activate', function() { Auth::activate(); } ); + + +Route::add('/account/reset_password', function() { Auth::reset_password(); } ); + + + + Route::add('/login-check', function() { $user = new Classroom_user(); $user->register_user(); -- cgit v1.2.3