aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/authController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controllers/authController.php')
-rw-r--r--app/Controllers/authController.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/Controllers/authController.php b/app/Controllers/authController.php
index 70adaa5d3..e2e1aaa22 100644
--- a/app/Controllers/authController.php
+++ b/app/Controllers/authController.php
@@ -199,8 +199,16 @@ class FreshRSS_auth_Controller extends Minz_ActionController {
/**
* This action gives possibility to a user to create an account.
+ *
+ * The user is redirected to the home if he's connected.
+ *
+ * A 403 is sent if max number of registrations is reached.
*/
public function registerAction() {
+ if (FreshRSS_Auth::hasAccess()) {
+ Minz_Request::forward(array('c' => 'index', 'a' => 'index'), true);
+ }
+
if (max_registrations_reached()) {
Minz_Error::error(403);
}