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