add support for Gotify push notifications

This commit is contained in:
2020-09-02 08:27:09 -05:00
parent 7117099993
commit 3ce470a9b2
17 changed files with 374 additions and 1 deletions

View File

@@ -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)
}