Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

.env file saving proccess abstractization #196

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

.env file saving proccess abstractization #196

wants to merge 1 commit into from

Conversation

pricop
Copy link
Contributor

@pricop pricop commented May 1, 2020

Rather than returning a string (which can differ, based on the selected language), let's return a boolean instead.

We can then do the validation in the Controller based on the boolean value (true/false).

In its current state, if the .env file can't be written, the user still gets redirected to the database controller.

In the proposed form, we can potentially cancel the request, and return back with an error message, so the user doesn't lose his input values until the .env file permissions get updated.

The entire process will work exactly the same as before, just provides more flexibility for those with custom changes to it.

Rather than returning a string (which can differ, based on the selected language, let's return a boolean instead.

We can then do the validation in the Controller based on the boolean value (true/false).

In its current state, if the .env file can't be written, the user still gets redirected to the database controller.

In the proposed form, we can potentially cancel the request, and return back with an error message, so the user doesn't lose his input values until the .env file permissions get updated.

The entire process will work exactly the same as before, just provides more flexibility for those with custom changes to it.
@mrahmadt
Copy link

Great idea

Thanks

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.

3 participants