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