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
{{ message }}
This repository was archived by the owner on Apr 5, 2024. It is now read-only.
Currently, the authentication for admin view is done client-side. This is undesirable, as malicious actors could use the browsers' inbuilt "Inspect" functionality to view the password and add words recordings.
Proposed Solution
Ideally, the typed passphrase would be sent to the server, where a server-side script or function could authenticate it and return a status code (pass/fail the authentication request). The client may then display a tooltip informing the user of a failed authentication, or move on to the next course of action.
Tasks
create GET endpoint on server-side script for admin password
send password (in a secure way) to the server in client-side script
authenticate password on the server and send back status code