Skip to content

Commit

Permalink
Revert "core: don't auth on empty password (#126)"
Browse files Browse the repository at this point in the history
This reverts commit 6a085d7.
  • Loading branch information
PaideiaDilemma committed Mar 6, 2024
1 parent 624f497 commit 8aeeb2d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/hyprlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,11 +714,9 @@ void CHyprlock::onKey(uint32_t key, bool down) {
if (m_sPasswordState.passBuffer.length() > 0)
m_sPasswordState.passBuffer = m_sPasswordState.passBuffer.substr(0, m_sPasswordState.passBuffer.length() - 1);
} else if (SYM == XKB_KEY_Return || SYM == XKB_KEY_KP_Enter) {
if (m_sPasswordState.passBuffer.length() > 0) {
Debug::log(LOG, "Authenticating");
Debug::log(LOG, "Authenticating");

m_sPasswordState.result = g_pPassword->verify(m_sPasswordState.passBuffer);
}
m_sPasswordState.result = g_pPassword->verify(m_sPasswordState.passBuffer);
} else if (SYM == XKB_KEY_Escape) {
Debug::log(LOG, "Clearing password buffer");

Expand Down

0 comments on commit 8aeeb2d

Please sign in to comment.