Skip to content

Commit 2e04f2b

Browse files
committed
Merge pull request #32 from timhall/google-authenticator
Update GoogleAuthenticator
2 parents 04185c6 + 8e6f869 commit 2e04f2b

11 files changed

+349
-66
lines changed

authenticators/FacebookAuthenticator.cls

+5-5
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ End Sub
117117
Public Sub Login()
118118
On Error GoTo CleanUp
119119

120-
Dim IE As InternetExplorer
120+
Dim IE As Object
121121
Dim Completed As Boolean
122122
Dim Code As String
123123
Dim Token As String
124124

125-
Set IE = New InternetExplorer
125+
Set IE = CreateObject("InternetExplorer.Application")
126126
With IE
127127
.Silent = True
128128
.AddressBar = False
@@ -235,7 +235,7 @@ Private Function OAuthIsComplete(IE As InternetExplorer) As Boolean
235235
End If
236236
End Function
237237

238-
Private Function OAuthIsSuccessful(IE As InternetExplorer) As Boolean
238+
Private Function OAuthIsSuccessful(IE As Object) As Boolean
239239
Dim Url As String
240240
Url = Replace(IE.LocationURL, "https://www.facebook.com/connect/login_success.html", "")
241241

@@ -244,15 +244,15 @@ Private Function OAuthIsSuccessful(IE As InternetExplorer) As Boolean
244244
End If
245245
End Function
246246

247-
Private Function OAuthIsDenied(IE As InternetExplorer) As Boolean
247+
Private Function OAuthIsDenied(IE As Object) As Boolean
248248
Dim Url As String
249249
Url = Replace(IE.LocationURL, "https://www.facebook.com/connect/login_success.html", "")
250250

251251
If Left(Url, 6) = "?error" Then
252252
OAuthIsDenied = True
253253
End If
254254
End Function
255-
Private Function OAuthExtractCode(IE As InternetExplorer) As String
255+
Private Function OAuthExtractCode(IE As Object) As String
256256
Dim Url As String
257257
Dim StartIndex As Integer
258258
Dim EndIndex As Integer

0 commit comments

Comments
 (0)