fix: 修复前端密码登陆api参数校验问题

This commit is contained in:
2025-12-17 13:27:40 +08:00
parent 471fa141ce
commit fdc8da2308

View File

@@ -4,7 +4,7 @@ import { APIError } from "../common";
export async function loginByPassword(identifier: string, password: string) { export async function loginByPassword(identifier: string, password: string) {
identifier = identifier.trim(); identifier = identifier.trim();
password = identifier.trim(); password = password.trim();
if (identifier.length === 0 || password.length === 0) { if (identifier.length === 0 || password.length === 0) {
throw new APIError('请输入账户和密码') throw new APIError('请输入账户和密码')
} }