1
0
Fork 0
mirror of synced 2024-10-02 18:16:29 +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"
import { searchExistingEmails } from "./lookup"
import { hash } from "../utils"
import { security } from ".."
import { validatePassword } from "../security"
type QuotaUpdateFn = (
change: number,
@ -112,7 +112,7 @@ export class UserDB {
throw new HTTPError("Password change is disabled for this user", 400)
}
const passwordValidation = security.validatePassword(password)
const passwordValidation = validatePassword(password)
if (!passwordValidation.valid) {
throw new HTTPError(passwordValidation.error, 400)
}