Closed sayanee closed 8 years ago
follow branch https://github.com/webuildsg/webuild/tree/admin-page
This should be behind http basic-auth on the /admin
endpoint.
Steps for setting up basic-auth.
/admin
coming over http
to https
.req
doesn't contain any basic auth information, reply with "HTTP 401 Unauthorized" status and a WWW-Authenticate field : WWW-Authenticate: Basic realm="User Visible Realm"
req
does contain basic auth fields, then verify against environmental variables and respond with html if successful and "HTTP 401 Unauthorized" status and a WWW-Authenticate field if not.https://www.npmjs.com/package/basic-auth will come in handy.
Currently on staging, without any save button. Just showing the list:
@notthetup redirection is already there thanks to Cloudflare:
Staging design refactoring:
use .push()
synchronously in the forEach
loop:
The data is laid out in a table at
/admin
:New Groups
[add group]()
Upcoming 20 events
These events are coming from added / approved groups