summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--password.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/password.c b/password.c
index 5349e13..59f28c7 100644
--- a/password.c
+++ b/password.c
@@ -111,6 +111,9 @@ static void submit_password(struct swaylock_state *state) {
if (state->args.ignore_empty && state->password.len == 0) {
return;
}
+ if (state->auth_state == AUTH_STATE_VALIDATING) {
+ return;
+ }
state->input_state = INPUT_STATE_IDLE;
state->auth_state = AUTH_STATE_VALIDATING;