more
This commit is contained in:
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)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user