From 734bfa3144d807f1ae034e43283a7a30a01fc951 Mon Sep 17 00:00:00 2001 From: Jrohy Date: Tue, 13 Oct 2020 19:06:24 +0800 Subject: [PATCH] rollback code --- web/controller/user.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/web/controller/user.go b/web/controller/user.go index af72ae22..4ff94537 100644 --- a/web/controller/user.go +++ b/web/controller/user.go @@ -115,8 +115,6 @@ func UpdateUser(id uint, username string, password string) *ResponseBody { } if err := mysql.UpdateUser(id, username, password, string(pass)); err != nil { responseBody.Msg = err.Error() - } else { - Restart() } return &responseBody }