Skip to content

Commit 3d9dec5

Browse files
committed
Redmine:16027 (fix issue #16251)
1 parent ce451e8 commit 3d9dec5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Project/Sources/Classes/OAuth2Provider.4dm

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,13 @@ Function _getToken_SignedIn($bUseRefreshToken : Boolean) : Object
496496
$options.enableDebugLog:=This.enableDebugLog
497497
$options.useTLS:=(Position("https"; This.redirectURI)=1)
498498
If ((Value type(This.authenticationPage)=Is object) || (Value type(This.authenticationErrorPage)=Is object))
499-
var $file : Object:=(This.authenticationPage#Null) ? This.authenticationPage : This.authenticationErrorPage
499+
var $file : Object:=Null
500+
Case of
501+
: (Value type(This.authenticationPage)=Is object)
502+
$file:=This.authenticationPage
503+
: (Value type(This.authenticationErrorPage)=Is object)
504+
$file:=This.authenticationErrorPage
505+
End case
500506
If (OB Instance of($file; 4D.File))
501507
$options.webFolder:=$file.parent
502508
End if

0 commit comments

Comments
 (0)