Files
zotp-bash/testotp-exitcode.sh
2026-06-06 21:36:42 +02:00

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