You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I always forget to run the agctl command to set up the admin user. I would like to make that happen automatically when starting the server for the first time with an empty database. Are there any concerns with doing this s111?
The text was updated successfully, but these errors were encountered:
I think using agctl or just flipping the bool using sqlite3 is the best option. We could have the first user to register always be an admin. The only concern I have is the added complexity.
All teachers will be admin in the sense that they can create courses etc. The first user to be admin will be responsible for promoting other teachers (at least the first other teacher) to admin role. So User.ID=1 has no special meaning except always being admin. So in CreateUserFromRemoteIdentity we can simply set IsAdmin:=true for the first user. This does not add much complexity IMO. Am I missing something @s111?
I always forget to run the
agctl
command to set up the admin user. I would like to make that happen automatically when starting the server for the first time with an empty database. Are there any concerns with doing this s111?The text was updated successfully, but these errors were encountered: