aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/authController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre.alapetite@alexandra.dk> 2015-07-23 11:59:32 +0200
committerGravatar Alexandre Alapetite <alexandre.alapetite@alexandra.dk> 2015-07-23 11:59:32 +0200
commitde607efd6ae1dc68ce56e482ff6e88d08e8242f4 (patch)
tree5708d4ddd2768e8df3e7ba2c5cb71ab5131b75ff /app/Controllers/authController.php
parentcd83002f430d573fc3757de3f4204d911bcb7183 (diff)
parentd2caf4349c4c5957ddc453795ffe8ea10237231c (diff)
Merge branch 'FreshRSS/dev' into dev
Diffstat (limited to 'app/Controllers/authController.php')
-rw-r--r--app/Controllers/authController.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/app/Controllers/authController.php b/app/Controllers/authController.php
index 937c0759d..aff184263 100644
--- a/app/Controllers/authController.php
+++ b/app/Controllers/authController.php
@@ -253,7 +253,7 @@ class FreshRSS_auth_Controller extends Minz_ActionController {
FreshRSS_Auth::giveAccess();
invalidateHttpCache();
} else {
- Minz_Log::error($reason);
+ Minz_Log::warning($reason);
$res = array();
$res['status'] = 'failure';
@@ -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') . ' ยท ');
+ }
}