fix: fixed formatting
This commit is contained in:
2 files changed
+28
-23
No files matched your search
+3
-1
@@ -258,7 +258,9 @@ class LockScreen(Window):
|
||||
return False # stop timeout
|
||||
|
||||
def on_activate(self, entry: Entry, *args):
|
||||
if not pam.pam().authenticate(getpass.getuser(), (entry.get_text() or "").strip()):
|
||||
if not pam.pam().authenticate(
|
||||
getpass.getuser(), (entry.get_text() or "").strip()
|
||||
):
|
||||
entry.set_text("")
|
||||
entry.set_placeholder_text("Wrong Password")
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user