more
This commit is contained in:
parent
fcb5182313
commit
60ce07c983
2
2fa.go
2
2fa.go
|
@ -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)
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue