mirror of
https://github.com/narrrl/proton-drive-linux.git
synced 2026-11-21 02:23:48 +01:00
refactor(core): sign in through proton_auth_rs::session
The sign-in steps are now the sequence Proton Gallery and Proton Stream share. The stored session, the lock/unlock choice for two-password accounts, the three mailbox-password tries and the errors front-ends word themselves are unchanged. An account whose only second factor is a security key now gets a clear message instead of a code prompt that could only fail.
This commit is contained in:
1 parent
734e9040fb
commit
e15e1dcc76
16 files changed
+121
-76
No files matched your search
@@ -13,6 +13,11 @@ scratch (user data in `staging/` and `recovery/` is never touched by this).
|
||||
|
||||
### Changed
|
||||
|
||||
- Signing in runs through `proton_auth_rs::session`, the sequence Proton Gallery and
|
||||
Proton Stream use too. The stored session, the lock/unlock choice for two-password
|
||||
accounts, the three mailbox-password tries and the messages stay as they were.
|
||||
- An account whose only second factor is a security key now gets a clear message at
|
||||
sign-in instead of a code prompt that could only fail.
|
||||
- Block fetches shared by concurrent readers now use `SingleFlight` from
|
||||
`proton-media-rs`, the same code Proton Stream uses. Same behaviour: one
|
||||
download per block, every reader gets its result, and a reader whose fetch was
|
||||
|
||||
Reference in new issue
Block a user