Fix hosting

This commit is contained in:
Adria Navarro 2024-01-03 12:35:52 +01:00
parent 8a4ff7d1e4
commit 699555c04b
1 changed files with 2 additions and 2 deletions

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