Mercurial > gemma
comparison controllers/user.go @ 261:ab9859981ee3
If a user got renamed kick her/him from the connection pool.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 27 Jul 2018 14:55:47 +0200 |
parents | dfc2b035e055 |
children | d89a19c297e0 |
comparison
equal
deleted
inserted
replaced
260:c2cef3ce8853 | 261:ab9859981ee3 |
---|---|
249 | 249 |
250 if err != nil { | 250 if err != nil { |
251 return | 251 return |
252 } | 252 } |
253 | 253 |
254 if user != newUser.User { | |
255 // Running in a go routine should not be necessary. | |
256 go func() { auth.ConnPool.Logout(user) }() | |
257 } | |
258 | |
254 jr = JSONResult{ | 259 jr = JSONResult{ |
255 Code: http.StatusCreated, | 260 Code: http.StatusCreated, |
256 Result: struct { | 261 Result: struct { |
257 Result string `json:"result"` | 262 Result string `json:"result"` |
258 }{ | 263 }{ |