forked from mirrors/homebox
fix linter errors
This commit is contained in:
parent
39d8ff03f8
commit
b33ef5f029
14 changed files with 44 additions and 307 deletions
|
@ -13,7 +13,7 @@ type Token struct {
|
|||
|
||||
func GenerateToken() Token {
|
||||
randomBytes := make([]byte, 16)
|
||||
rand.Read(randomBytes)
|
||||
_, _ = rand.Read(randomBytes)
|
||||
|
||||
plainText := base32.StdEncoding.WithPadding(base32.NoPadding).EncodeToString(randomBytes)
|
||||
hash := HashToken(plainText)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue