# HG changeset patch # User Sascha L. Teichmann # Date 1532696147 -7200 # Node ID ab9859981ee342ca3d2286da9ee65523b2ad1702 # Parent c2cef3ce8853f970f8954ac5cef6117622363d5a If a user got renamed kick her/him from the connection pool. diff -r c2cef3ce8853 -r ab9859981ee3 controllers/user.go --- a/controllers/user.go Fri Jul 27 13:25:14 2018 +0200 +++ b/controllers/user.go Fri Jul 27 14:55:47 2018 +0200 @@ -251,6 +251,11 @@ return } + if user != newUser.User { + // Running in a go routine should not be necessary. + go func() { auth.ConnPool.Logout(user) }() + } + jr = JSONResult{ Code: http.StatusCreated, Result: struct {