mirror of
https://github.com/optim-enterprises-bv/databunker.git
synced 2025-11-21 00:24:52 +00:00
add support for bad login notification, review notification code
This commit is contained in:
@@ -169,7 +169,7 @@ func (e mainEnv) approveUserRequest(w http.ResponseWriter, r *http.Request, ps h
|
||||
event.Status = "failed"
|
||||
event.Msg = "failed to delete"
|
||||
}
|
||||
notifyURL := e.conf.Notification.ForgetmeNotificationURL
|
||||
notifyURL := e.conf.Notification.NotificationURL
|
||||
notifyForgetMe(notifyURL, resultJSON, "token", userTOKEN)
|
||||
} else if action == "change-profile" {
|
||||
oldJSON, newJSON, lookupErr, err := e.db.updateUserRecord(requestInfo["change"].([]uint8), userTOKEN, event, e.conf)
|
||||
@@ -182,7 +182,7 @@ func (e mainEnv) approveUserRequest(w http.ResponseWriter, r *http.Request, ps h
|
||||
return
|
||||
}
|
||||
returnUUID(w, userTOKEN)
|
||||
notifyURL := e.conf.Notification.ProfileNotificationURL
|
||||
notifyURL := e.conf.Notification.NotificationURL
|
||||
notifyProfileChange(notifyURL, oldJSON, newJSON, "token", userTOKEN)
|
||||
} else if action == "change-app-data" {
|
||||
app := requestInfo["app"].(string)
|
||||
|
||||
Reference in New Issue
Block a user