comparison pkg/controllers/user.go @ 493:8a0737aa6ab6 metamorph-for-all

The connection pool is now only a session store.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 24 Aug 2018 14:25:05 +0200
parents b2dc9c2f69e0
children 8926c413db21
comparison
equal deleted inserted replaced
486:b2dc9c2f69e0 493:8a0737aa6ab6
82 } 82 }
83 return 83 return
84 } 84 }
85 85
86 // Running in a go routine should not be necessary. 86 // Running in a go routine should not be necessary.
87 go func() { auth.ConnPool.Logout(user) }() 87 go func() { auth.Sessions.Logout(user) }()
88 88
89 jr = JSONResult{Code: http.StatusNoContent} 89 jr = JSONResult{Code: http.StatusNoContent}
90 return 90 return
91 } 91 }
92 92
159 return 159 return
160 } 160 }
161 161
162 if user != newUser.User { 162 if user != newUser.User {
163 // Running in a go routine should not be necessary. 163 // Running in a go routine should not be necessary.
164 go func() { auth.ConnPool.Logout(string(user)) }() 164 go func() { auth.Sessions.Logout(string(user)) }()
165 } 165 }
166 166
167 jr = JSONResult{ 167 jr = JSONResult{
168 Code: http.StatusCreated, 168 Code: http.StatusCreated,
169 Result: struct { 169 Result: struct {