-import { UserModel } from '../models/account/user'
+import { UserModel } from '../models/user/user'
import * as ipaddr from 'ipaddr.js'
import { CONFIG } from '../initializers/config'
}
function isSignupAllowedForCurrentIP (ip: string) {
+ if (!ip) return false
+
const addr = ipaddr.parse(ip)
- let excludeList = [ 'blacklist' ]
+ const excludeList = [ 'blacklist' ]
let matched = ''
// if there is a valid, non-empty whitelist, we exclude all unknown adresses too