summaryrefslogtreecommitdiff
path: root/state.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-26 15:49:31 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-26 15:49:31 +0200
commit5608d9a858c2323002305ea1fedb5793a40edc58 (patch)
tree51b5152d0f6724ca663c714d00e8c43abd9888f9 /state.go
parent75aa163ccf407e9690f9ea0e548f8fed70073722 (diff)
Refactor: Authenticated -> Authorized
Diffstat (limited to 'state.go')
-rw-r--r--state.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/state.go b/state.go
index 8fbc7d2..1f9f52c 100644
--- a/state.go
+++ b/state.go
@@ -108,7 +108,7 @@ func (state *VPNState) Connect(url string) (string, error) {
// Make sure we are in the chosen state if available
state.FSM.GoTransition(internal.CHOSEN_SERVER)
// Relogin with oauth
- // This moves the state to authenticated
+ // This moves the state to authorized
if server.NeedsRelogin() {
loginErr := server.Login()
@@ -118,8 +118,8 @@ func (state *VPNState) Connect(url string) (string, error) {
state.FSM.GoTransition(internal.CHOSEN_SERVER)
return "", loginErr
}
- } else { // OAuth was valid, ensure we are in the authenticated state
- state.FSM.GoTransition(internal.AUTHENTICATED)
+ } else { // OAuth was valid, ensure we are in the authorized state
+ state.FSM.GoTransition(internal.AUTHORIZED)
}
state.FSM.GoTransition(internal.REQUEST_CONFIG)