mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
11 lines
297 B
JavaScript
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
|
|
} |