mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
fixing sharing manager update bug
This commit is contained in:
parent
6be0d308b7
commit
148a2bb3d2
@ -44,7 +44,11 @@ export class SharingManager implements ISharingManager {
|
|||||||
if (sharing.timeStamp < Date.now() - Config.Server.sharing.updateTimeout) {
|
if (sharing.timeStamp < Date.now() - Config.Server.sharing.updateTimeout) {
|
||||||
throw "Sharing is locked, can't update anymore"
|
throw "Sharing is locked, can't update anymore"
|
||||||
}
|
}
|
||||||
sharing.password = PasswordHelper.cryptPassword(inSharing.password);
|
if (inSharing.password == null) {
|
||||||
|
sharing.password = null;
|
||||||
|
} else {
|
||||||
|
sharing.password = PasswordHelper.cryptPassword(inSharing.password);
|
||||||
|
}
|
||||||
sharing.includeSubfolders = inSharing.includeSubfolders;
|
sharing.includeSubfolders = inSharing.includeSubfolders;
|
||||||
sharing.expires = inSharing.expires;
|
sharing.expires = inSharing.expires;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user