fmt.Println("[ERROR] Failed to generate session token at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.String(500,"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-SIGNUP-SESSION-GEN")
log.Println("[ERROR] Unknown in /api/signup checkUsernameTaken() at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-SIGNUP-CHECKUSERNAME"})
log.Println("[ERROR] Unknown in /api/signup genSalt() at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-SIGNUP-SALT"})
return
}
hashedPassword,err:=hash(password,salt)
iferr!=nil{
log.Println("[ERROR] Unknown in /api/signup hash() at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-SIGNUP-HASH"})
log.Println("[ERROR] Unknown in /api/signup genSalt() at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-SIGNUP-SUB"})
log.Println("[ERROR] Unknown in /api/signup checkUsernameTaken() at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-SIGNUP-CHECKUSERNAME"})
log.Println("[ERROR] Unknown in /api/signup token genSalt() at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-SIGNUP-SESSIONSALT"})
log.Println("[ERROR] Unknown in /api/signup session Exec() at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-SIGNUP-SESSIONINSERT"})
log.Println("[ERROR] Unknown in /api/login checkUsernameTaken() at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-LOGIN-CHECKUSERNAME"})
log.Println("[ERROR] Unknown in /api/login getUser() at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-LOGIN-GETUSER"})
log.Println("[ERROR] Unknown in /api/login password check at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-LOGIN-PASSWORDCHECK"})
log.Println("[ERROR] Unknown in /api/login token genSalt() at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-LOGIN-SESSIONSALT"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-LOGIN-SESSIONINSERT"})
log.Println("[ERROR] Unknown in /api/login password hash at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-LOGIN-PASSWORDHASH"})
return
}
_,err=conn.Exec("UPDATE users SET password = ? WHERE username = ?",hashPassword,username)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-LOGIN-PASSWORDCHANGE"})
log.Println("[ERROR] Unknown in /api/userinfo getUser() at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-USERINFO-GETUSER"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-USERINFO-BLACKLIST"})
log.Println("[ERROR] Unknown in /userinfo getUser() at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-USERINFO-GETUSER"})
log.Println("[ERROR] Unknown in /api/sub blacklist at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-UNIQUEID-BLACKLIST"})
log.Println("[ERROR] Unknown in /api/userinfo getUser() at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-UNIQUEID-GETUSER"})
log.Println("[ERROR] Unknown in /api/loggedin blacklist at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-LOGGEDIN-BLACKLIST"})
c.String(500,"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-AUTH-SELECT")
log.Println("[ERROR] Unknown in /api/auth nonce genSalt() at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.String(500,"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-AUTH-NONCE")
log.Println("[ERROR] Unknown in /api/userinfo getUser() at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.String(500,"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-AUTH-GETUSER")
c.String(500,"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKOWN-API-AUTH-JWTCANNOTSIGN")
c.String(500,"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKOWN-API-AUTH-JWTCANNOTSIGN.")
log.Println("[ERROR] Unknown in /api/auth randomBytes at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.String(500,"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-AUTH-RANDOMBYTES.")
c.String(500,"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-AUTH-INSERT.")
c.String(500,"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-AUTH-REDIRECT.")
log.Println("[ERROR] Secret key not found at",strconv.FormatInt(time.Now().Unix(),10))
err=conn.QueryRow("SELECT o.appId, o.secret, l.openid, l.code, l.PKCECode, l.PKCEMethod FROM oauth AS o JOIN logins AS l ON o.appId = l.appId WHERE o.appId = ? AND l.secret = ? LIMIT 1;",appId,code).Scan(&appIdCheck,&secretCheck,&openid,&loginCode,&PKCECode,&PKCEMethod)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-TOKENAUTH-SELECT"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-TOKENAUTH-DELETE"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-DELETEAUTH-DELETE"})
log.Println("[ERROR] Unknown in /api/newauth secretgen at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-NEWAUTH-SECRETGEN"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-NEWAUTH-SECRETSELECT"})
log.Println("[ERROR] Unknown in /api/newauth secretgen at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-NEWAUTH-SECRETGEN"})
log.Println("[ERROR] Unknown in /api/newauth appidgen at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-NEWAUTH-APPIDGEN"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-NEWAUTH-APPIDCHECK"})
log.Println("[ERROR] Unknown in /api/newauth appidgen at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-NEWAUTH-LAPPIDGEN"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-NEWAUTH-INSERT"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-LISTAUTH-QUERY"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-LISTAUTH-ROWSCLOSE"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-LISTAUTH-SCAN"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-LISTAUTH-ROWSERR"})
log.Println("[ERROR] Unknown in /api/deleteaccount userdata at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-DELETEACCT-USERDATA"})
log.Println("[ERROR] Unknown in /api/deleteaccount logins at",strconv.FormatInt(time.Now().Unix(),10)+":",err)
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-DELETEACCT-LOGINS"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-DELETEUSER-OAUTH"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-DELETEUSER-USERS"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-SESSIONS-LIST"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-SESSIONS-LIST-ROWSCLOSE"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-SESSIONS-LIST-SCAN"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-SESSIONS-LIST-ERR"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-SESSIONS-REMOVE"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-LISTUSERS-QUERY"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-LISTUSERS-ROWSCLOSE"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-LISTUSERS-SCAN"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-LISTUSERS-ERR"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-JWKS-MODULUS"})
c.JSON(500,gin.H{"error":"Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-JWKS-EXPONENT"})