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:
Nicola Murino
2021-09-04 12:11:04 +02:00
parent 16ba7ddb34
commit 8a4c21b64a
52 changed files with 5985 additions and 475 deletions

View File

@@ -806,6 +806,7 @@ func getAdminFromDbRow(row sqlScanner) (Admin, error) {
admin.Description = description.String
}
admin.SetEmptySecretsIfNil()
return admin, nil
}