Skip to content
This repository was archived by the owner on Oct 1, 2022. It is now read-only.

Move the password validation server side - #185

Open
kerimhudson wants to merge 1 commit into
CodeYourFuture:masterfrom
kerimhudson:move-password-serverside
Open

Move the password validation server side#185
kerimhudson wants to merge 1 commit into
CodeYourFuture:masterfrom
kerimhudson:move-password-serverside

Conversation

@kerimhudson

Copy link
Copy Markdown

As a volunteer, I'm not totally comfortable with the way in which authentication is currently handled on the front-end. The password is hard-coded into the frontend and is visible and easy to access by viewing the source code, which then reveals the email addresses of all the volunteers.

As there's already a backend integration for this app, it would be better to store the password as an ENV variable to make it easier to change in the future, and so that it can't be read from the frontend.

This is an example of how this logic could be integrated, however this was done without a DB connection so there may be errors.

@ChrisOwen101
ChrisOwen101 requested a review from byohannes June 10, 2021 14:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant