summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-12-06 17:45:22 +0300
committerAndrew Dolgov <[email protected]>2019-12-06 17:45:22 +0300
commit76dd74e0d94f38fb605f46b4a3ebe03700d00bb7 (patch)
tree14d0b6cd1134838c534951e7d0c8304b2d25bd30 /classes
parentac95ab4a659c56afee048923883fe9ee1491c35b (diff)
add a hidden tweakable which forbids changing passwords
Diffstat (limited to 'classes')
-rw-r--r--classes/pref/prefs.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php
index b00c4c83f..ce24ba4ce 100644
--- a/classes/pref/prefs.php
+++ b/classes/pref/prefs.php
@@ -118,6 +118,11 @@ class Pref_Prefs extends Handler_Protected {
function changepassword() {
+ if (defined('_TTRSS_DEMO_INSTANCE')) {
+ print "ERROR: ".format_error("Disabled in demo version.");
+ return;
+ }
+
$old_pw = clean($_POST["old_password"]);
$new_pw = clean($_POST["new_password"]);
$con_pw = clean($_POST["confirm_password"]);