quak login: say in words why the login failed (closes #244)
check / check (push) Waiting to run
check / check (push) Waiting to run
A password the server refuses (401 from /users/srp/verify-session) now fails with "incorrect email or password". An email the server has no account for (404 with a JSON body from /users/srp/attributes) fails with "no account with this email on the server". The error stays an ApiError with the same status. A 404 without JSON, as from a server address that is not an Ente server, keeps the bare "HTTP 404". Model: opus-5-5
This commit was merged in pull request #255.
This commit is contained in:
1 parent
ecdd90b0a8
commit
367eac2ef7
3 files changed
+132
-19
No files matched your search
@@ -283,8 +283,13 @@ factor at that point, login fails.
|
||||
|
||||
On success it logs `Logged in as <email> (user <id>)` and
|
||||
`Session saved to <path>`. On failure it logs `Login failed: <reason>`, and the
|
||||
exit status is 1. `login` is the only command that prompts, and its prompts go
|
||||
to stdout.
|
||||
exit status is 1. Two reasons are given in words:
|
||||
|
||||
- a password the server refuses: `Login failed: incorrect email or password`
|
||||
- an email with no account on the server:
|
||||
`Login failed: no account with this email on the server`
|
||||
|
||||
`login` is the only command that prompts, and its prompts go to stdout.
|
||||
|
||||
#### `quak whoami`
|
||||
|
||||
|
||||
Reference in new issue
Block a user