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

This commit is contained in:
quzard 2023-05-31 15:51:31 +08:00 committed by GitHub
parent 5f045f8cf5
commit 0f6958c57a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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": "",