Skip to content

Commit

Permalink
Don't reset user settings when entering wrong credentials (#681)
Browse files Browse the repository at this point in the history
* Don't reset user settings when entering wrong credentials

* Update metainfo
  • Loading branch information
lenemter authored Jul 24, 2023
1 parent 45b4429 commit 8a66725
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions data/greeter.metainfo.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<issue url="https://github.com/elementary/greeter/issues/295">Clicking in the card but outside of the wallpaper window does not switch the card</issue>
<issue url="https://github.com/elementary/greeter/issues/451">Reuse mouse settings if only one user exists</issue>
<issue url="https://github.com/elementary/greeter/issues/541">Some shortcuts to switch keyboard layout does not work on lockscreen</issue>
<issue url="https://github.com/elementary/greeter/issues/589">Keyboard layout gets changed when failing at entering password in login form</issue>
<issue url="https://github.com/elementary/greeter/issues/610">Screen reader shortcut doesn't launch</issue>
</issues>
</release>
Expand Down
8 changes: 6 additions & 2 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,12 @@ public class Greeter.MainWindow : Gtk.ApplicationWindow {
}
}

if (current_card is Greeter.UserCard) {
switch_to_card ((Greeter.UserCard) current_card);
if (user_card != null) {
try {
lightdm_greeter.authenticate (user_card.lightdm_user.name);
} catch (Error e) {
critical (e.message);
}
}

current_card.wrong_credentials ();
Expand Down

0 comments on commit 8a66725

Please sign in to comment.