Skip to content

Commit 5bb2c2e

Browse files
lib/chkhash.c: is_valid_hash(): Comment meaning of !hash and *
Signed-off-by: Alejandro Colomar <[email protected]>
1 parent 051940e commit 5bb2c2e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/chkhash.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,14 @@ match_regex(const char *pattern, const char *string)
4040
bool
4141
is_valid_hash(const char *hash)
4242
{
43+
// Password temporarily locked
4344
hash = strprefix(hash, "!") ?: hash;
4445

4546
// Passwordless account; discouraged
4647
if (streq(hash, ""))
4748
return true;
4849

50+
// Password permanently locked (and forgotten)
4951
if (streq(hash, "*"))
5052
return true;
5153

0 commit comments

Comments
 (0)