Commit Graph
1 Commits
Author SHA1 Message Date
dd9f801872 cal 485 prevent users from changing their username to premium ones (#799)
* Makes userRequired middleware

* Prevent users from changing usernames to premium ones

* refactor on zomars' branch (#801)

* rename `profile` -> `mutation`

* `createProtectedRouter()` helper

* move profile mutation to `viewer.`

* simplify checkUsername

* Auto scrolls to error when there is one

* Renames username helpers

* Follows db convention

Co-authored-by: Alex Johansson <[email protected]>
Co-authored-by: Bailey Pumfleet <[email protected]>
2021-09-28 09:57:30 +01:00