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
|
@ -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…
Reference in New Issue