From 5608d9a858c2323002305ea1fedb5793a40edc58 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 26 Apr 2022 15:49:31 +0200 Subject: Refactor: Authenticated -> Authorized --- state.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'state.go') 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) -- cgit v1.2.3