Skip to content
This repository was archived by the owner on Nov 25, 2024. It is now read-only.

Commit 7f53e66

Browse files
committed
resolving comments
- #3380 (comment) - #3380 (comment)
1 parent 4954427 commit 7f53e66

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

clientapi/auth/user_interactive.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ type UserInteractive struct {
106106
flows []userInteractiveFlow
107107
// Map of login type to implementation
108108
types map[string]Type
109-
// Map of session ID to completed login types, will need to be extended in future
110109

111-
mutex sync.RWMutex
110+
mutex sync.RWMutex
111+
// Map of session ID to completed login types, will need to be extended in future
112112
sessions map[string][]string
113113
}
114114

@@ -160,13 +160,11 @@ func (u *UserInteractive) challenge(sessionID string) *util.JSONResponse {
160160
completed := u.sessions[sessionID]
161161
u.mutex.RUnlock()
162162

163-
flows := u.flows
164-
165163
return &util.JSONResponse{
166164
Code: 401,
167165
JSON: Challenge{
168166
Completed: completed,
169-
Flows: flows,
167+
Flows: u.flows,
170168
Session: sessionID,
171169
Params: make(map[string]interface{}),
172170
},

0 commit comments

Comments
 (0)