16 lines
303 B
Bash
16 lines
303 B
Bash
#!/bin/bash
|
|
|
|
## zOTP Bash Example for Function testOTP - Using exit code for validation over 45 minutes
|
|
|
|
declare thesalt="zOTP by Ze'ev Schurmann"
|
|
|
|
source zotp.inc.sh
|
|
|
|
declare theseed="user@domain.tld"
|
|
|
|
if testOTP 123456 45 q; then
|
|
echo "OTP is valid..."
|
|
else
|
|
echo "OTP is invalid or expired..."
|
|
fi
|