Initial commit of stable v1.0
This commit is contained in:
15
testotp-textoutput.sh
Normal file
15
testotp-textoutput.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
## zOTP Bash Example for Function testOTP - Using text output for validation over 15 minutes
|
||||
|
||||
declare thesalt="zOTP by Ze'ev Schurmann"
|
||||
|
||||
source zotp.inc.sh
|
||||
|
||||
declare theseed="user@domain.tld"
|
||||
|
||||
if [[ "$(testOTP 123456 15)" == "VALID" ]]; then
|
||||
echo "OTP is valid..."
|
||||
else
|
||||
echo "OTP is invalid or expired..."
|
||||
fi
|
||||
Reference in New Issue
Block a user