aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/authController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-07-23 09:28:58 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-07-23 09:28:58 +0200
commit28dd652228b8e863cddd3d03613c586c01796204 (patch)
treed6d83d44beb2a31095ca301723fe7ab79ee87e37 /app/Controllers/authController.php
parentfa76e863c5622609b944542b0255c30f2f67c97e (diff)
parent1ad36c420e774d6f66b6a7ecf5b37ed1103ea464 (diff)
Merge pull request #914 from marienfressinaud/679-create-accounts
Add account creation feature. To be tested for 1.1.2-beta
Diffstat (limited to 'app/Controllers/authController.php')
-rw-r--r--app/Controllers/authController.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/Controllers/authController.php b/app/Controllers/authController.php
index b55892475..aff184263 100644
--- a/app/Controllers/authController.php
+++ b/app/Controllers/authController.php
@@ -346,4 +346,15 @@ class FreshRSS_auth_Controller extends Minz_ActionController {
}
}
}
+
+ /**
+ * This action gives possibility to a user to create an account.
+ */
+ public function registerAction() {
+ if (max_registrations_reached()) {
+ Minz_Error::error(403);
+ }
+
+ Minz_View::prependTitle(_t('gen.auth.registration.title') . ' ยท ');
+ }
}