Remove - from token generation for invites
This commit is contained in:
parent
2821e8bd58
commit
44f9cf6301
|
@ -53,7 +53,7 @@ func (i *Manager) Create(in store.Invite, user store.User) (string, error) {
|
|||
}
|
||||
|
||||
func (i *Manager) createToken() (string, error) {
|
||||
const letters = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-"
|
||||
const letters = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
|
||||
ret := make([]byte, 8)
|
||||
for i := 0; i < 8; i++ {
|
||||
num, err := rand.Int(rand.Reader, big.NewInt(int64(len(letters))))
|
||||
|
|
Loading…
Reference in a new issue