summaryrefslogtreecommitdiffstats
path: root/lib/preferences.php
diff options
context:
space:
mode:
authorFred Thomsen <fredthomsen@fredthomsen.net>2013-01-01 15:54:58 -0500
committerPaul Arthur <flowerysong00@yahoo.com>2013-01-15 12:27:03 -0500
commit15ddcc3448c97748897a28dc62862d729e5f0255 (patch)
tree4fe68706b9f7566c28e9e3bd2c6e7c7981fe6a7e /lib/preferences.php
parente2ca05d5b419944adb3723ab0253c7c35418a0e4 (diff)
downloadampache-15ddcc3448c97748897a28dc62862d729e5f0255.tar.gz
ampache-15ddcc3448c97748897a28dc62862d729e5f0255.tar.bz2
ampache-15ddcc3448c97748897a28dc62862d729e5f0255.zip
Always output masked password
Previously, users who didn't have access to modify the password were shown the actual current setting instead of asterisks.
Diffstat (limited to 'lib/preferences.php')
-rw-r--r--lib/preferences.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/preferences.php b/lib/preferences.php
index 4f9a26b9..d13cdb71 100644
--- a/lib/preferences.php
+++ b/lib/preferences.php
@@ -142,7 +142,12 @@ function create_preference_input($name,$value) {
echo "Disabled";
}
else {
- echo $value;
+ if (preg_match('/_pass$/', $name)) {
+ echo "******";
+ }
+ else {
+ echo $value;
+ }
}
return;
} // if we don't have access to it