1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 02:05:56 +00:00

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

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