1
0
Fork 0
mirror of synced 2024-10-03 02:27:06 +13:00

Fix hosting

This commit is contained in:
Adria Navarro 2024-01-03 12:35:52 +01:00
parent 8a4ff7d1e4
commit 699555c04b

View file

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