From 76dd74e0d94f38fb605f46b4a3ebe03700d00bb7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 6 Dec 2019 17:45:22 +0300 Subject: [PATCH] add a hidden tweakable which forbids changing passwords --- classes/pref/prefs.php | 5 +++++ 1 file changed, 5 insertions(+) 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"]);