sftpgo-mirror/examples/OTP/authy/checkpwd
Nicola Murino a020a4e0ed
update dependencies in tests and examples
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2024-04-20 17:22:14 +02:00
..
go.mod update dependencies in tests and examples 2024-04-20 17:22:14 +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.