limit the session key as per the the definition comment 'The ID of a session. Always 18 bytes base64url-encoded as 24 characters.' using 30 characters to be conservative

This commit is contained in:
Casey Allred 2017-01-23 21:33:02 +00:00
parent c2c1718f11
commit 37590b9e3e

View File

@ -150,7 +150,7 @@ instance forall sess. P.PersistFieldSql (Decomposed sess) => P.PersistEntity (Pe
(P.DBName "key")
(P.FTTypeCon Nothing "SessionId sess")
(P.sqlType (Proxy :: Proxy (SessionId sess)))
[]
["maxlen=30"]
True
P.NoReference
persistFieldDef PersistentSessionAuthId