Repository navigation
v0.31.1
Sign-up stores field values properly
v0.31.1 fixes how sign-up and invitations store an auth collection's own fields.
Fixed
- Sign-up stored custom field values as sent. Registering, accepting an invitation, upgrading a guest account and OAuth sign-up skipped what a record write does: a
jsonor multi-select value answered 500, anencryptedfield was stored in the clear, apasswordfield unhashed, and anautodatefield took the client's value. They now store values as a record write does, and what abeforeCreatehook returns is validated at register and invite. - Invitations are checked as an admin's write, for the fields they set. An invite with an email alone works when the collection has a required field.
- A field marked required when its auth collection was created broke guest sign-up, OAuth sign-up and invitations with a 500. New auth collections don't have the limit, and
requiredis still checked wherever a body is validated.
See the changelog for everything.
Upgrade notes
- Postgres: nothing to do; the server removes the limit from existing auth collections when it starts.
- SQLite: the server log at start and
vaultbase doctorname any affected fields. The authentication docs show how to move each one to a new column and keep its values. - Upgrade notes for earlier releases apply if you are coming from before v0.30.0.
Full Changelog: v0.31.0...v0.31.1