summaryrefslogtreecommitdiff
path: root/html/app/routes/frontend.php
diff options
context:
space:
mode:
authorGeo Xalkis <gx23100@gmail.com>2023-04-02 06:16:40 +0300
committerGeo Xalkis <gx23100@gmail.com>2023-04-02 06:16:40 +0300
commit0d317dc0cfe6ae2b6b62d711b7ae67e63555235f (patch)
treeca02d2af6a7b17fe6100e57d784f0bb4c07ebf9b /html/app/routes/frontend.php
parentc95daba5206cb4bd55b5685e8141311f23606e1a (diff)
downloadclassroom-0d317dc0cfe6ae2b6b62d711b7ae67e63555235f.tar.gz
classroom-0d317dc0cfe6ae2b6b62d711b7ae67e63555235f.tar.bz2
classroom-0d317dc0cfe6ae2b6b62d711b7ae67e63555235f.zip
several updates on user registration
Diffstat (limited to 'html/app/routes/frontend.php')
-rw-r--r--html/app/routes/frontend.php31
1 files changed, 31 insertions, 0 deletions
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();