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