fix(desktop/login): pass identifier alongside email and add phone to preview user

Aligns the desktop client with the server's phone-or-email login API so
sign-in works after the identifier-based auth switch.
This commit is contained in:
2026-04-29 15:59:35 +08:00
parent a5cef078f5
commit 01b289ba0b
2 changed files with 2 additions and 0 deletions
@@ -279,6 +279,7 @@ function createPreviewUser(): UserInfo {
return {
id: 0,
email: "preview@geo-rankly.local",
phone: "",
name: "开发预览账号",
avatar_url: null,
tenant_id: 0,
@@ -57,6 +57,7 @@ async function submitLogin() {
}
await login({
identifier: form.email,
email: form.email,
password: form.password,
});