fix: send canonical login identifier

This commit is contained in:
2026-09-01 19:39:17 +08:00
parent f4de324393
commit 16dd722c15
+2 -2
View File
@@ -27,8 +27,8 @@ export interface ImpersonationExchangeResult {
expiresIn: number
}
export function loginMerchant(username: string, password: string) {
return apiRequest<TokenPair>({ method: 'POST', url: '/auth/login', data: { username, password } })
export function loginMerchant(loginId: string, password: string) {
return apiRequest<TokenPair>({ method: 'POST', url: '/auth/login', data: { loginId, password } })
}
export function registerMerchant(payload: RegisterMerchantRequest) {