Skip to content

Commit

Permalink
Update SystemWorkerProperties.4dm
Browse files Browse the repository at this point in the history
Gdrive/Dropbox Authentication check
  • Loading branch information
ThomasMaul authored Mar 8, 2022
1 parent 6c2cf88 commit a12683b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Project/Sources/Classes/SystemWorkerProperties.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ Function onData($systemworker : Object; $data : Object)
// not needed for Curl
// in Gdrive or Dropbox used when asking for Authentication
This:C1470.data.text+=$data.data
If ((This:C1470.type="gdrive") | (This:C1470.type="dropbox"))
If ((This:C1470.type="gdrive") && (This:C1470.data.text="@Authentication@"))
$systemworker.terminate()
End if

If ((This:C1470.type="dropbox") && (This:C1470.data.text="@authorization@"))
$systemworker.terminate()
End if

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

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

0 comments on commit a12683b

Please sign in to comment.