diff options
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(); } ); |
