This commit is contained in:
Your Name 2023-10-09 11:44:56 -04:00
parent fcb5182313
commit 60ce07c983
1 changed files with 2 additions and 0 deletions

2
2fa.go
View File

@ -3,6 +3,7 @@ package scsusers
import (
"crypto/rand"
"fmt"
"log"
"math/big"
"strconv"
"time"
@ -56,6 +57,7 @@ func Send2FA(u *UserData) error {
lastname = ""
}
fullname := fmt.Sprintf("%s %s", firstname, lastname)
log.Printf("Sending %s %s %s", u.Username, fullname, code)
return Send2faEmail(u.Username, fullname, code)
}