mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
[pdf] Call asc_setCurrentPassword after correct password to fix sending incorrect password to server
This commit is contained in:
@ -1147,7 +1147,6 @@
|
||||
if (this.file && this.file.isNeedPassword())
|
||||
{
|
||||
window["AscViewer"].setFilePassword(this.file, password);
|
||||
this.Api.asc_setCurrentPassword(password, true);
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -1180,6 +1179,9 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (undefined !== password)
|
||||
this.Api.asc_setCurrentPassword(password, true);
|
||||
|
||||
if (window["AscDesktopEditor"])
|
||||
{
|
||||
this.savedPassword = password || "";
|
||||
|
||||
Reference in New Issue
Block a user