-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create script for making default admin account and add route to change user role #368
Conversation
LCOV of commit
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #368 +/- ##
===========================================
+ Coverage 61.27% 61.72% +0.45%
===========================================
Files 61 63 +2
Lines 9232 9304 +72
Branches 91 94 +3
===========================================
+ Hits 5657 5743 +86
+ Misses 3570 3556 -14
Partials 5 5 ☔ View full report in Codecov by Sentry. |
scripts/create-admin.ts
.DEFAULT_ADMIN_EMAIL
andDEFAULT_ADMIN_PROCESS
env vars defined for it./api/v0/auth/role
to change a user's role. Can only be called by admin accounts.