Commit 07feef5a by quzard Committed by GitHub

fix: update common.RootUserEmail when root's email changed (#132)

parent a9507788
...@@ -655,6 +655,9 @@ func EmailBind(c *gin.Context) { ...@@ -655,6 +655,9 @@ func EmailBind(c *gin.Context) {
}) })
return return
} }
if user.Role == common.RoleRootUser {
common.RootUserEmail = email
}
c.JSON(http.StatusOK, gin.H{ c.JSON(http.StatusOK, gin.H{
"success": true, "success": true,
"message": "", "message": "",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment