Move registration code to a separate unit

Until now, we used the same unit to register and edit accounts. Split
these features into separate source files for clarity. This also allows
us to redirect to the home page when a logged-in user tries to access
the registration page.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2015-06-25 15:46:39 +02:00
parent 6395a5d5b8
commit 3dbaee80b4
3 changed files with 38 additions and 18 deletions

View file

@ -8,7 +8,7 @@ $ROUTES = array(
'/packages' => 'packages.php',
'/pkgbase' => 'pkgbase.php',
'/requests' => 'pkgreq.php',
'/register' => 'account.php',
'/register' => 'register.php',
'/account' => 'account.php',
'/accounts' => 'account.php',
'/login' => 'login.php',