diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-09 04:50:17 +0300 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-09 04:50:17 +0300 |
| commit | a584bf73b6d64dad98f150caba0f25e790cde010 (patch) | |
| tree | 76c47f080248ebc97f6ae14fdaa364c2f1750b8d /html/app/routes | |
| parent | 45d853b343b485bff7e6089e2689dba5f7d901cf (diff) | |
| download | classroom-a584bf73b6d64dad98f150caba0f25e790cde010.tar.gz classroom-a584bf73b6d64dad98f150caba0f25e790cde010.tar.bz2 classroom-a584bf73b6d64dad98f150caba0f25e790cde010.zip | |
user registration and login scenarios
Diffstat (limited to 'html/app/routes')
| -rw-r--r-- | html/app/routes/frontend.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/html/app/routes/frontend.php b/html/app/routes/frontend.php index e602e87..ba831d6 100644 --- a/html/app/routes/frontend.php +++ b/html/app/routes/frontend.php @@ -44,13 +44,22 @@ Route::add('/registration', function() { Render::view('user/registration'); }); +Route::add('/account/check-login', function() { Auth::login(); }); // user sends a registration form; -Route::add('/account/register', function() { $x = Auth::register(); print_r($x); }, 'post'); +Route::add('/account/register', function() { Auth::register(); }, 'post'); // user requests activation Route::add('/account/activate', function() { Auth::activate(); } ); +// user profile +Route::add('/account/profile', function() { + // check if user is activated and loged in + // then ... + }, + 'post' +); + Route::add('/account/reset_password', function() { Auth::reset_password(); } ); |
