u
Anirudh Oppiliappan x@icyphox.sh
Mon, 25 Sep 2023 23:39:29 +0300
1 files changed,
3 insertions(+),
4 deletions(-)
jump to
M
masto.go
→
masto.go
@@ -6,7 +6,6 @@ "fmt"
"net/http" "time" - "github.com/google/uuid" "humungus.tedunangst.com/r/webs/junk" )@@ -37,9 +36,9 @@ clientName := r.Form.Get("client_name")
redirectUri := r.Form.Get("redirect_uris") scopes := r.Form.Get("scopes") website := r.Form.Get("website") - clientID := uuid.New().String() - clientSecret := uuid.New().String() - vapidKey := "BCk-QqERU0q-CfYZjcuB6lnyyOYfJ2AifKqfeGIm7Z-HiTU5T9eTG5GxVA0_OH5mMlI4UkkDTpaZwozy0TzdZ2M=" + clientID := tokengen() + clientSecret := tokengen() + vapidKey := tokengen() _, err := stmtSaveMastoApp.Exec(clientName, redirectUri, scopes, clientID, clientSecret, vapidKey) if err != nil {