Fixed typo

This commit is contained in:
Tracker-Friendly 2024-06-25 01:35:05 +01:00
parent b7ac5d3534
commit fb4b5ca57e
1 changed files with 1 additions and 1 deletions

View File

@ -1020,7 +1020,7 @@ func main() {
}
}
_, err = mem.Exec("DELETE FROM logins WHERE code = ?", loginCode)
_, err = mem.Exec("DELETE FROM logins WHERE loginToken = ?", loginCode)
if err != nil {
log.Println("[ERROR] Unknown in /api/tokenauth delete 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-TOKENAUTH-DELETE"})