PepperonIT / blockly-site

react app running Blockly
Apache License 2.0
1 stars 0 forks source link

Admin - Interface & usecases #25

Closed casperlundberg closed 1 year ago

casperlundberg commented 1 year ago

A local easy-login in the form of some simple hardcoded password was requested so the owners (LMS) can go in and modify the queue and restart the server (if necessary).

noorbhtiti commented 1 year ago

Should we have an admin page? cuz as I understand from the backend we just need to send a nickname, if it is Admin then we get another queue? @casperlundberg

casperlundberg commented 1 year ago

I believe that your understanding is correct, for some nickname (i.e "LMS123") the user gets privileges to manipulate the queue.

casperlundberg commented 1 year ago

Maybe we could just check that a user is an admin and render the "admin" locally since we probably won't have passwords and such. Then, just send the API calls from the admin queue and add eventual buttons along with the current ones if they don't fit in the queue-div

SimonHotDog commented 1 year ago

Should restart server be implemented?

casperlundberg commented 1 year ago

I don't think it is necessary so focus on other things to get everything ready