Compare commits

..

No commits in common. "117990202a0daf093840a0a661a51cc0197dca2c" and "bfe657faa016ccf747b16d2bcfcde6b6cd627894" have entirely different histories.

4 changed files with 3 additions and 14 deletions

View file

@ -2,7 +2,7 @@ accessibility = Přístupnost
.screen-reader = Čtečka obrazovky
.magnifier = Lupa
.high-contrast = Vysoký kontrast
.invert-colors = Inverze barev
.invert-colors = Převrátit barvy
cancel = Zrušit
caps-lock = Caps Lock je aktivní.
enter-user = Zadat jméno ručně...

View file

@ -1,4 +1,4 @@
cancel = Afbryd
cancel = Annuller
restart = Genstart
caps-lock = Skiftelås er aktiv.
enter-user = Indtast navn manuelt...

View file

@ -363,9 +363,6 @@ pub enum Message {
Common(common::Message),
OutputEvent(OutputEvent, WlOutput),
Auth(Option<String>),
/// Non-fatal error message from PAM (`PAM_ERROR_MSG`), reported by greetd as an auth
/// message of type `Error`. Unlike [`Message::Error`] the conversation stays alive.
AuthError(String),
ConfigUpdateUser,
DialogCancel,
DialogConfirm,
@ -1496,13 +1493,6 @@ impl cosmic::Application for App {
self.authenticating = true;
self.send_request(Request::PostAuthMessageResponse { response });
}
Message::AuthError(error) => {
// The conversation continues, so acknowledge like any other
// non-interactive auth message rather than cancelling the session.
self.common.error_opt = Some(error);
self.authenticating = false;
self.send_request(Request::PostAuthMessageResponse { response: None });
}
Message::Login => {
self.common.prompt_opt = None;
self.common.error_opt = None;

View file

@ -115,8 +115,7 @@ pub fn subscription() -> Subscription<Message> {
.await;
}
greetd_ipc::AuthMessageType::Error => {
// PAM_ERROR_MSG: a failed attempt, not a dead session.
_ = sender.send(Message::AuthError(auth_message)).await;
_ = sender.send(Message::Error(auth_message)).await;
}
},
greetd_ipc::Response::Error {