1
0
mirror of https://github.com/ragestudio/comty.git synced 2025-06-26 19:04:15 +00:00
2024-03-06 19:43:09 +00:00

11 lines
297 B
JavaScript

export default async (password) => {
if (password.length < 8) {
throw new OperationError(400, "Password must be at least 8 characters")
}
if (password.length > 64) {
throw new OperationError(400, "Password cannot be longer than 64 characters")
}
return true
}