fix: update common.RootUserEmail when root's email changed (#132)
This commit is contained in:
parent
5f045f8cf5
commit
0f6958c57a
@ -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": "",
|
||||
|
Loading…
Reference in New Issue
Block a user