mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 17:10:10 +00:00
Accounts: Fix email check on dropdown
This commit is contained in:
parent
168b217553
commit
519a5615cc
2
api.go
2
api.go
@ -1203,7 +1203,7 @@ func (app *appContext) GetUsers(gc *gin.Context) {
|
|||||||
}
|
}
|
||||||
if email, ok := app.storage.emails[jfUser.ID]; ok {
|
if email, ok := app.storage.emails[jfUser.ID]; ok {
|
||||||
user.Email = email.Addr
|
user.Email = email.Addr
|
||||||
user.NotifyThroughEmail = user.Email != ""
|
user.NotifyThroughEmail = email.Contact
|
||||||
}
|
}
|
||||||
expiry, ok := app.storage.users[jfUser.ID]
|
expiry, ok := app.storage.users[jfUser.ID]
|
||||||
if ok {
|
if ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user