V-Sekai / uro

Provides functionality needed to run your V-Sekai backend. It will serve custom game content, support content caching, and provide a user authentication system
https://v-sekai.org
MIT License
8 stars 3 forks source link

Bundle User and UserPrivilegeRuleset into a single transaction upon creation #29

Open SaracenOne opened 3 years ago

SaracenOne commented 3 years ago

Currently the UserPrivilegeRuleset for a User is created after the initial database creation due to creating a User being handled by an opaque function provided by the Pow library and could theoretically result in a User being left without a valid ruleset. The correct behaviour would be to create both database entries as part of a single transaction, but it is unclear how to do this.