add support for Gotify push notifications
This commit is contained in:
@@ -27,6 +27,14 @@ class PasswordResetAlertJob extends Job {
|
||||
],
|
||||
},
|
||||
})
|
||||
|
||||
if ( user.notify_config && user.notify_config.active ) {
|
||||
await user.notify_config.log({
|
||||
title: `${this.configs.get('app.name')}: Password Reset`,
|
||||
message: `The password to your account (${user.uid}) was reset from the IP address ${ip}. If this was not you, please contact your system administrator.`,
|
||||
priority: 8,
|
||||
})
|
||||
}
|
||||
} catch (e) {
|
||||
this.output.error(e)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user