sftpgo-mirror/examples/OTP/authy/checkpwd
Nicola Murino ca3e15578e
Use new methods in the io and os packages instead of ioutil ones
ioutil is deprecated in Go 1.16 and SFTPGo is an application, not
a library, we have no reason to keep compatibility with old Go
versions.

Go 1.16 fix some cifs related issues too.
2021-02-25 21:53:04 +01:00
..
go.mod add check password hook 2020-08-19 19:36:12 +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.