diff --git a/controller/user.go b/controller/user.go index b6241d36..46f5d869 100644 --- a/controller/user.go +++ b/controller/user.go @@ -655,6 +655,9 @@ func EmailBind(c *gin.Context) { }) return } + if user.Role == common.RoleRootUser { + common.RootUserEmail = email + } c.JSON(http.StatusOK, gin.H{ "success": true, "message": "",