Skip to content

Commit dfc544c

Browse files
committed
Remove unnecessary session verification
Fixes: a5c21f1 Related: #18452 (comment) Author-Change-Id: IB#1104925 Signed-off-by: Pawel Boguslawski <[email protected]>
1 parent ca00ec6 commit dfc544c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

services/auth/reverseproxy.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,7 @@ func (r *ReverseProxy) Verify(req *http.Request, w http.ResponseWriter, store Da
6565
return nil
6666
}
6767

68-
// Just return user if session is estabilshed already.
69-
user := SessionUser(sess)
70-
if user != nil {
71-
return user
72-
}
68+
var user *user_model.User = nil
7369

7470
username := r.getUserName(req)
7571
if len(username) == 0 {

0 commit comments

Comments
 (0)