TOTP fully functioning, account settings done!
This commit is contained in:
parent
50cbce92fc
commit
e004491b55
11 changed files with 143 additions and 48 deletions
|
@ -92,7 +92,6 @@ func GetTOTPsForAccount(db *sqlx.DB, accountID string) ([]model.TOTP, error) {
|
|||
func CheckTOTPForAccount(db *sqlx.DB, accountID string, totp string) (*model.TOTP, error) {
|
||||
totps, err := GetTOTPsForAccount(db, accountID)
|
||||
if err != nil {
|
||||
// user has no TOTP methods
|
||||
return nil, err
|
||||
}
|
||||
for _, method := range totps {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue