mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-22 14:30:41 -04:00
More js for modal password request
This commit is contained in:
parent
c1ca5657b5
commit
c916f33a83
1 changed files with 2 additions and 2 deletions
|
@ -696,7 +696,7 @@ $(function() {
|
||||||
{
|
{
|
||||||
if (password.length === 0)
|
if (password.length === 0)
|
||||||
{
|
{
|
||||||
password = this.requestPassword();
|
return this.requestPassword();
|
||||||
}
|
}
|
||||||
attachment = filter.decipher(key, password, paste.attachment);
|
attachment = filter.decipher(key, password, paste.attachment);
|
||||||
}
|
}
|
||||||
|
@ -731,7 +731,7 @@ $(function() {
|
||||||
var cleartext = filter.decipher(key, password, paste.data);
|
var cleartext = filter.decipher(key, password, paste.data);
|
||||||
if (cleartext.length === 0 && password.length === 0 && !paste.attachment)
|
if (cleartext.length === 0 && password.length === 0 && !paste.attachment)
|
||||||
{
|
{
|
||||||
password = this.requestPassword();
|
return this.requestPassword();
|
||||||
cleartext = filter.decipher(key, password, paste.data);
|
cleartext = filter.decipher(key, password, paste.data);
|
||||||
}
|
}
|
||||||
if (cleartext.length === 0 && !paste.attachment)
|
if (cleartext.length === 0 && !paste.attachment)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue