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:
@@ -279,6 +279,7 @@ function createPreviewUser(): UserInfo {
|
|||||||
return {
|
return {
|
||||||
id: 0,
|
id: 0,
|
||||||
email: "preview@geo-rankly.local",
|
email: "preview@geo-rankly.local",
|
||||||
|
phone: "",
|
||||||
name: "开发预览账号",
|
name: "开发预览账号",
|
||||||
avatar_url: null,
|
avatar_url: null,
|
||||||
tenant_id: 0,
|
tenant_id: 0,
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ async function submitLogin() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
await login({
|
await login({
|
||||||
|
identifier: form.email,
|
||||||
email: form.email,
|
email: form.email,
|
||||||
password: form.password,
|
password: form.password,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user