summaryrefslogtreecommitdiff
path: root/src/oauth.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/oauth.go')
-rw-r--r--src/oauth.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/oauth.go b/src/oauth.go
index eb4e13f..831fa0f 100644
--- a/src/oauth.go
+++ b/src/oauth.go
@@ -292,15 +292,11 @@ func (state *VPNState) LoginOAuth() error {
if oauthErr != nil {
return oauthErr
}
-
- state.WriteConfig()
return nil
}
func (oauth *OAuth) Login() error {
- // FIXME: Find a better way
- state := GetVPNState()
- return state.LoginOAuth()
+ return GetVPNState().LoginOAuth()
}
func (oauth *OAuth) NeedsRelogin() bool {