CC-2105: SoundCloud password should be protected in Configure->Preferences UI
-A blank password field won't overwrite the saved database value anymore
This commit is contained in:
parent
f74b0a562e
commit
b4d3786e41
1 changed files with 2 additions and 1 deletions
|
@ -117,7 +117,8 @@ class Application_Model_Preference
|
|||
}
|
||||
|
||||
public static function SetSoundCloudPassword($password) {
|
||||
Application_Model_Preference::SetValue("soundcloud_password", $password);
|
||||
if (strlen($password) > 0)
|
||||
Application_Model_Preference::SetValue("soundcloud_password", $password);
|
||||
}
|
||||
|
||||
public static function GetSoundCloudPassword() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue