Bugfix when password is disabled in config no new paste can be

created
This commit is contained in:
Haocen Xu 2019-10-25 13:05:09 -04:00
parent d3153b5e38
commit 56222d6cfb
No known key found for this signature in database
GPG Key ID: 3F0D955A0F6AD729

View File

@ -3814,7 +3814,8 @@ jQuery.PrivateBin = (function($, RawDeflate) {
*/
me.getPassword = function()
{
return $passwordInput.val();
// when password is disabled $passwordInput.val() will return undefined
return $passwordInput.val() || '';
};
/**