mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-29 12:10:24 +00:00
Initial commit of eigent-main
This commit is contained in:
commit
723df5a03e
1144 changed files with 103478 additions and 0 deletions
17
package/@stackframe/stack-shared/dist/esm/helpers/password.js
vendored
Normal file
17
package/@stackframe/stack-shared/dist/esm/helpers/password.js
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// src/helpers/password.ts
|
||||
import { KnownErrors } from "..";
|
||||
var minLength = 8;
|
||||
var maxLength = 70;
|
||||
function getPasswordError(password) {
|
||||
if (password.length < minLength) {
|
||||
return new KnownErrors.PasswordTooShort(minLength);
|
||||
}
|
||||
if (password.length > maxLength) {
|
||||
return new KnownErrors.PasswordTooLong(maxLength);
|
||||
}
|
||||
return void 0;
|
||||
}
|
||||
export {
|
||||
getPasswordError
|
||||
};
|
||||
//# sourceMappingURL=password.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue