mirror of
https://github.com/mautrix/whatsapp.git
synced 2025-03-14 14:15:38 +00:00
legacyprovision: fix QR code field name
This commit is contained in:
parent
d6bf634a63
commit
94633e2778
1 changed files with 2 additions and 2 deletions
|
@ -165,7 +165,7 @@ func legacyProvLogin(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
} else {
|
||||
_ = conn.WriteJSON(map[string]any{
|
||||
"qr_code": step.DisplayAndWaitParams.Data,
|
||||
"code": step.DisplayAndWaitParams.Data,
|
||||
"timeout": 60,
|
||||
})
|
||||
}
|
||||
|
@ -176,7 +176,7 @@ func legacyProvLogin(w http.ResponseWriter, r *http.Request) {
|
|||
respondWebsocketWithError(conn, err, "Failed to wait for login")
|
||||
} else if step.StepID == connector.LoginStepIDQR {
|
||||
_ = conn.WriteJSON(map[string]any{
|
||||
"qr_code": step.DisplayAndWaitParams.Data,
|
||||
"code": step.DisplayAndWaitParams.Data,
|
||||
"timeout": 20,
|
||||
})
|
||||
continue
|
||||
|
|
Loading…
Add table
Reference in a new issue