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:
nvrl committed 2026-11-20 15:43:31 +01:00
1 parent 734e9040fb
commit e15e1dcc76
16 files changed
+121 -76

No files matched your search

+4
View File
@@ -3599,6 +3599,10 @@ msgstr "Anmeldung abgebrochen: Es wurde kein Postfach-Passwort eingegeben."
msgid "That mailbox password didn't unlock your account."
msgstr "Das Postfach-Passwort hat Ihr Konto nicht entsperrt."
#: crates/pdfs-gui/src/app/pages/login.rs
msgid "This account's only second factor is a security key, which this app can't use yet. Add an authenticator app in your Proton account settings, then sign in with its code."
msgstr "Der einzige zweite Faktor dieses Kontos ist ein Sicherheitsschlüssel, den diese App noch nicht nutzen kann. Fügen Sie in Ihren Proton-Kontoeinstellungen eine Authentifizierungs-App hinzu und melden Sie sich dann mit deren Code an."
#: crates/pdfs-gui/src/app/pages/login.rs:340
msgid ""
"Sign-in cancelled: the verification wasn't completed. Sign in again to get a "
+4
View File
@@ -3541,6 +3541,10 @@ msgstr "Sign-in cancelled: no mailbox password was entered."
msgid "That mailbox password didn't unlock your account."
msgstr "That mailbox password didn't unlock your account."
#: crates/pdfs-gui/src/app/pages/login.rs
msgid "This account's only second factor is a security key, which this app can't use yet. Add an authenticator app in your Proton account settings, then sign in with its code."
msgstr "This account's only second factor is a security key, which this app can't use yet. Add an authenticator app in your Proton account settings, then sign in with its code."
#: crates/pdfs-gui/src/app/pages/login.rs:340
msgid ""
"Sign-in cancelled: the verification wasn't completed. Sign in again to get a "
+4
View File
@@ -3575,6 +3575,10 @@ msgstr "Inicio de sesión cancelado: no se introdujo la contraseña del buzón."
msgid "That mailbox password didn't unlock your account."
msgstr "Esa contraseña del buzón no desbloqueó tu cuenta."
#: crates/pdfs-gui/src/app/pages/login.rs
msgid "This account's only second factor is a security key, which this app can't use yet. Add an authenticator app in your Proton account settings, then sign in with its code."
msgstr "El único segundo factor de esta cuenta es una llave de seguridad, que esta aplicación aún no puede usar. Añade una aplicación de autenticación en los ajustes de tu cuenta de Proton y luego inicia sesión con su código."
#: crates/pdfs-gui/src/app/pages/login.rs:340
msgid ""
"Sign-in cancelled: the verification wasn't completed. Sign in again to get a "
+4
View File
@@ -3600,6 +3600,10 @@ msgid "That mailbox password didn't unlock your account."
msgstr ""
"Ce mot de passe de boîte aux lettres n’a pas déverrouillé votre compte."
#: crates/pdfs-gui/src/app/pages/login.rs
msgid "This account's only second factor is a security key, which this app can't use yet. Add an authenticator app in your Proton account settings, then sign in with its code."
msgstr "Le seul second facteur de ce compte est une clé de sécurité, que cette application ne peut pas encore utiliser. Ajoutez une application d’authentification dans les paramètres de votre compte Proton, puis connectez-vous avec son code."
#: crates/pdfs-gui/src/app/pages/login.rs:340
msgid ""
"Sign-in cancelled: the verification wasn't completed. Sign in again to get a "
+4
View File
@@ -3593,6 +3593,10 @@ msgid "That mailbox password didn't unlock your account."
msgstr ""
"Quella password della casella di posta non ha sbloccato il tuo account."
#: crates/pdfs-gui/src/app/pages/login.rs
msgid "This account's only second factor is a security key, which this app can't use yet. Add an authenticator app in your Proton account settings, then sign in with its code."
msgstr "L’unico secondo fattore di questo account è una chiave di sicurezza, che questa app non può ancora usare. Aggiungi un’app di autenticazione nelle impostazioni del tuo account Proton, poi accedi con il suo codice."
#: crates/pdfs-gui/src/app/pages/login.rs:340
msgid ""
"Sign-in cancelled: the verification wasn't completed. Sign in again to get a "
+4
View File
@@ -3583,6 +3583,10 @@ msgstr "Aanmelden geannuleerd: er is geen mailboxwachtwoord ingevoerd."
msgid "That mailbox password didn't unlock your account."
msgstr "Dat mailboxwachtwoord heeft je account niet ontgrendeld."
#: crates/pdfs-gui/src/app/pages/login.rs
msgid "This account's only second factor is a security key, which this app can't use yet. Add an authenticator app in your Proton account settings, then sign in with its code."
msgstr "De enige tweede factor van dit account is een beveiligingssleutel, die deze app nog niet kan gebruiken. Voeg een authenticator-app toe in je Proton-accountinstellingen en meld je daarna aan met de code daarvan."
#: crates/pdfs-gui/src/app/pages/login.rs:340
msgid ""
"Sign-in cancelled: the verification wasn't completed. Sign in again to get a "
+4
View File
@@ -3411,6 +3411,10 @@ msgstr ""
msgid "That mailbox password didn't unlock your account."
msgstr ""
#: crates/pdfs-gui/src/app/pages/login.rs
msgid "This account's only second factor is a security key, which this app can't use yet. Add an authenticator app in your Proton account settings, then sign in with its code."
msgstr ""
#: crates/pdfs-gui/src/app/pages/login.rs:340
msgid ""
"Sign-in cancelled: the verification wasn't completed. Sign in again to get a "
+4
View File
@@ -3652,6 +3652,10 @@ msgstr "Anulowano logowanie: nie wpisano hasła skrzynki pocztowej."
msgid "That mailbox password didn't unlock your account."
msgstr "To hasło skrzynki pocztowej nie odblokowało Twojego konta."
#: crates/pdfs-gui/src/app/pages/login.rs
msgid "This account's only second factor is a security key, which this app can't use yet. Add an authenticator app in your Proton account settings, then sign in with its code."
msgstr "Jedynym drugim składnikiem tego konta jest klucz bezpieczeństwa, którego ta aplikacja nie może jeszcze używać. Dodaj aplikację uwierzytelniającą w ustawieniach konta Proton, a następnie zaloguj się jej kodem."
#: crates/pdfs-gui/src/app/pages/login.rs:340
msgid ""
"Sign-in cancelled: the verification wasn't completed. Sign in again to get a "
+4
View File
@@ -3575,6 +3575,10 @@ msgstr "Entrada cancelada: nenhuma senha da caixa de correio foi digitada."
msgid "That mailbox password didn't unlock your account."
msgstr "Essa senha da caixa de correio não desbloqueou sua conta."
#: crates/pdfs-gui/src/app/pages/login.rs
msgid "This account's only second factor is a security key, which this app can't use yet. Add an authenticator app in your Proton account settings, then sign in with its code."
msgstr "O único segundo fator desta conta é uma chave de segurança, que este app ainda não pode usar. Adicione um app autenticador nas configurações da sua conta Proton e depois entre com o código dele."
#: crates/pdfs-gui/src/app/pages/login.rs:340
msgid ""
"Sign-in cancelled: the verification wasn't completed. Sign in again to get a "