dsh-jiuling-link 0.2.1-rc.10 → 0.2.1-rc.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/host/account.mjs +1 -1
- package/package.json +1 -1
package/host/account.mjs
CHANGED
|
@@ -157,7 +157,7 @@ export class AccountClient {
|
|
|
157
157
|
|
|
158
158
|
async login({ email, password }, signal, beforeSave) {
|
|
159
159
|
if (typeof email !== 'string' || !validEmail(email.trim()) || typeof password !== 'string' ||
|
|
160
|
-
password.length > 256 || [...password].length <
|
|
160
|
+
password.length > 256 || [...password].length < 8 || [...password].length > 128) {
|
|
161
161
|
throw issue('account_invalid', 'Check the email and password.');
|
|
162
162
|
}
|
|
163
163
|
const { status, data, cookie } = await this.#request('/api/login', {
|