add a hidden tweakable which forbids changing passwords

This commit is contained in:
Andrew Dolgov 2019-12-06 17:45:22 +03:00
parent ac95ab4a65
commit 76dd74e0d9
1 changed files with 5 additions and 0 deletions

View File

@ -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"]);