Skip to content

Commit a12683b

Browse files
authored
Update SystemWorkerProperties.4dm
Gdrive/Dropbox Authentication check
1 parent 6c2cf88 commit a12683b

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Project/Sources/Classes/SystemWorkerProperties.4dm

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ Function onData($systemworker : Object; $data : Object)
2222
// not needed for Curl
2323
// in Gdrive or Dropbox used when asking for Authentication
2424
This:C1470.data.text+=$data.data
25-
If ((This:C1470.type="gdrive") | (This:C1470.type="dropbox"))
25+
If ((This:C1470.type="gdrive") && (This:C1470.data.text="@Authentication@"))
26+
$systemworker.terminate()
27+
End if
28+
29+
If ((This:C1470.type="dropbox") && (This:C1470.data.text="@authorization@"))
2630
$systemworker.terminate()
2731
End if
2832

@@ -76,4 +80,4 @@ Function onTerminate($systemworker : Object; $data : Object)
7680

7781
Function _createFile($title : Text; $textBody : Text)
7882
// debug only
79-
TEXT TO DOCUMENT:C1237(Get 4D folder:C485(Current resources folder:K5:16)+$title+".txt"; $textBody)
83+
TEXT TO DOCUMENT:C1237(Get 4D folder:C485(Current resources folder:K5:16)+$title+".txt"; $textBody)

0 commit comments

Comments
 (0)