mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 06:40:54 +03:00
add builtin two-factor auth support
The builtin two-factor authentication is based on time-based one time passwords (RFC 6238) which works with Authy, Google Authenticator and other compatible apps.
This commit is contained in:
@@ -806,6 +806,7 @@ func getAdminFromDbRow(row sqlScanner) (Admin, error) {
|
||||
admin.Description = description.String
|
||||
}
|
||||
|
||||
admin.SetEmptySecretsIfNil()
|
||||
return admin, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user