sftpgo/examples/OTP/authy/checkpwd
Nicola Murino 8ab4a9aa70
all: update to Go 1.21
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2023-08-10 19:23:55 +02:00
..
go.mod all: update to Go 1.21 2023-08-10 19:23:55 +02:00
main.go Use new methods in the io and os packages instead of ioutil ones 2021-02-25 21:53:04 +01:00
README.md add check password hook 2020-08-19 19:36:12 +02:00

Authy 2FA via check password hook

This example shows how to use 2FA via the check password hook using a password consisting of a fixed part and an Authy TOTP token. The hook will check the TOTP token using the Authy API and SFTPGo will check the fixed part. Please read the sample code, it should be self explanatory.