v0.12.0 migrate sqlite3 to psql18, updated auth, deploy docs, account and replay updates
test / test (push) Canceled after 0s
test / test (push) Canceled after 0s
This commit is contained in:
1 parent
5d2be4abb2
commit
d0326b059e
66 files changed
+4016
-2433
No files matched your search
@@ -96,7 +96,13 @@ func validationMiddleware(c *fiber.Ctx) error {
|
||||
return c.Next()
|
||||
}
|
||||
|
||||
// isValidUUID accepts only the canonical 36-character form the server issues.
|
||||
// uuid.Parse also accepts braced, URN, and unhyphenated forms, which never
|
||||
// match an in-memory game and are rejected by the database's uuid input.
|
||||
func isValidUUID(s string) bool {
|
||||
if len(s) != 36 {
|
||||
return false
|
||||
}
|
||||
_, err := uuid.Parse(s)
|
||||
return err == nil
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user