aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/authController.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2019-09-13 17:33:18 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2019-09-17 09:21:23 +0200
commita2ed6626c2f4e85878f775abcac897a1fd3a1f42 (patch)
tree6a12718165c7d054107c587e2b34cdc25c3cc7e7 /app/Controllers/authController.php
parent80590daeb3627e5712be15fdc4bd98f0e2c40ea5 (diff)
Add support for terms of service
This feature is optional. It is based on the presence of a `data/tos.html` file that an administrator can create. If this file exists, FreshRSS will automatically add a "ToS" checkbox on the registration page that users must check to be able to create their account.
Diffstat (limited to 'app/Controllers/authController.php')
-rw-r--r--app/Controllers/authController.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/Controllers/authController.php b/app/Controllers/authController.php
index a8b21b886..70adaa5d3 100644
--- a/app/Controllers/authController.php
+++ b/app/Controllers/authController.php
@@ -205,6 +205,7 @@ class FreshRSS_auth_Controller extends Minz_ActionController {
Minz_Error::error(403);
}
+ $this->view->show_tos_checkbox = file_exists(join_path(DATA_PATH, 'tos.html'));
$this->view->show_email_field = FreshRSS_Context::$system_conf->force_email_validation;
Minz_View::prependTitle(_t('gen.auth.registration.title') . ' ยท ');
}