diff options
| author | Andrew Dolgov <noreply@fakecake.org> | 2019-12-06 17:45:22 +0300 |
|---|---|---|
| committer | Andrew Dolgov <noreply@fakecake.org> | 2019-12-06 17:45:22 +0300 |
| commit | 76dd74e0d94f38fb605f46b4a3ebe03700d00bb7 (patch) | |
| tree | 14d0b6cd1134838c534951e7d0c8304b2d25bd30 /classes | |
| parent | ac95ab4a659c56afee048923883fe9ee1491c35b (diff) | |
add a hidden tweakable which forbids changing passwords
Diffstat (limited to 'classes')
| -rw-r--r-- | classes/pref/prefs.php | 5 |
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"]); |