diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-04-26 15:49:31 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-04-26 15:49:31 +0200 |
| commit | 5608d9a858c2323002305ea1fedb5793a40edc58 (patch) | |
| tree | 51b5152d0f6724ca663c714d00e8c43abd9888f9 /state.go | |
| parent | 75aa163ccf407e9690f9ea0e548f8fed70073722 (diff) | |
Refactor: Authenticated -> Authorized
Diffstat (limited to 'state.go')
| -rw-r--r-- | state.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |
