mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-01-20 19:52:16 +01:00
add tests for empty otp part to check_user_token()
This commit is contained in:
parent
33e7013916
commit
bda491c413
@ -92,6 +92,10 @@ static void test_check_user_token(void) {
|
||||
assert(ret == 1);
|
||||
ret = check_user_token(file, "foo2", "vvvvvvvvvvcc", 1);
|
||||
assert(ret == -1);
|
||||
ret = check_user_token(file, "foo2", "", 1);
|
||||
assert(ret == -1);
|
||||
ret = check_user_token(file, "foo", "", 1);
|
||||
assert(ret == -2);
|
||||
remove(file);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user