added stats page and password reset
This commit is contained in:
parent
621cc2a83e
commit
cabc3e94b4
55 changed files with 8094 additions and 4362 deletions
14
pkg/cmd/helper.go
Normal file
14
pkg/cmd/helper.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// Copyright (C) 2019 Marius Schellenberger
|
||||
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"crypto/rand"
|
||||
"encoding/hex"
|
||||
)
|
||||
|
||||
func password() (string, error) {
|
||||
b := make([]byte, 16)
|
||||
_, err := rand.Read(b)
|
||||
return hex.EncodeToString(b), err
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue