make string actually random
This commit is contained in:
parent
fe437a1dcc
commit
e63fee56dc
@ -6,7 +6,9 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
|
"math/rand"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gorilla/sessions"
|
"github.com/gorilla/sessions"
|
||||||
@ -25,7 +27,7 @@ var (
|
|||||||
Scopes: []string{"https://www.googleapis.com/auth/userinfo.email"},
|
Scopes: []string{"https://www.googleapis.com/auth/userinfo.email"},
|
||||||
Endpoint: google.Endpoint,
|
Endpoint: google.Endpoint,
|
||||||
}
|
}
|
||||||
oauthStateString = "thisshouldberandom"
|
oauthStateString = strconv.Itoa(rand.Int())
|
||||||
)
|
)
|
||||||
|
|
||||||
var Version string = "dev"
|
var Version string = "dev"
|
||||||
|
Loading…
Reference in New Issue
Block a user