Bugfix when password is disabled in config no new paste can be
created
This commit is contained in:
parent
d3153b5e38
commit
56222d6cfb
1 changed files with 2 additions and 1 deletions
|
@ -3814,7 +3814,8 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
||||||
*/
|
*/
|
||||||
me.getPassword = function()
|
me.getPassword = function()
|
||||||
{
|
{
|
||||||
return $passwordInput.val();
|
// when password is disabled $passwordInput.val() will return undefined
|
||||||
|
return $passwordInput.val() || '';
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue