Fix hosting
This commit is contained in:
parent
8a4ff7d1e4
commit
699555c04b
|
@ -27,7 +27,7 @@ import {
|
||||||
} from "./utils"
|
} from "./utils"
|
||||||
import { searchExistingEmails } from "./lookup"
|
import { searchExistingEmails } from "./lookup"
|
||||||
import { hash } from "../utils"
|
import { hash } from "../utils"
|
||||||
import { security } from ".."
|
import { validatePassword } from "../security"
|
||||||
|
|
||||||
type QuotaUpdateFn = (
|
type QuotaUpdateFn = (
|
||||||
change: number,
|
change: number,
|
||||||
|
@ -112,7 +112,7 @@ export class UserDB {
|
||||||
throw new HTTPError("Password change is disabled for this user", 400)
|
throw new HTTPError("Password change is disabled for this user", 400)
|
||||||
}
|
}
|
||||||
|
|
||||||
const passwordValidation = security.validatePassword(password)
|
const passwordValidation = validatePassword(password)
|
||||||
if (!passwordValidation.valid) {
|
if (!passwordValidation.valid) {
|
||||||
throw new HTTPError(passwordValidation.error, 400)
|
throw new HTTPError(passwordValidation.error, 400)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue