Add foreign IP login notifications

This commit is contained in:
garrettmills
2020-07-12 16:05:59 -05:00
parent 8dd3accfc4
commit d29e6f057a
7 changed files with 106 additions and 5 deletions

View File

@@ -10,6 +10,8 @@ class SettingsUnit extends Unit {
}
async go(app) {
app.express.set('trust proxy', true)
const Setting = this.models.get('Setting')
const default_settings = this.configs.get('setting.settings')
for ( const key in default_settings ) {