farhan-helmy / carisurau

https://carisurau.com
MIT License
66 stars 36 forks source link

Add admin panel #108

Open farhan-helmy opened 1 year ago

farhan-helmy commented 1 year ago

Currently admin panel is on github.com/farhan-helmy/carisurau-adm . It can be moved here and make it easier to approve surau. We can have a list of allowed email to access admin panel in secret json file / AWS Secrets Manager / .env file

Altafxx commented 12 months ago

Or maybe, kita boleh setup middleware which akan filter specific roles je boleh access admin page (Next Auth Protected Auth). So no need dah having secret json file or something.