mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 21:15:55 +00:00
add a hidden tweakable which forbids changing passwords
This commit is contained in:
@@ -118,6 +118,11 @@ class Pref_Prefs extends Handler_Protected {
|
|||||||
|
|
||||||
function changepassword() {
|
function changepassword() {
|
||||||
|
|
||||||
|
if (defined('_TTRSS_DEMO_INSTANCE')) {
|
||||||
|
print "ERROR: ".format_error("Disabled in demo version.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$old_pw = clean($_POST["old_password"]);
|
$old_pw = clean($_POST["old_password"]);
|
||||||
$new_pw = clean($_POST["new_password"]);
|
$new_pw = clean($_POST["new_password"]);
|
||||||
$con_pw = clean($_POST["confirm_password"]);
|
$con_pw = clean($_POST["confirm_password"]);
|
||||||
|
|||||||
Reference in New Issue
Block a user