Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support upper and lower case strings for postgres username creation #471

Closed
drshrey opened this issue May 6, 2019 · 0 comments · Fixed by #472
Closed

Support upper and lower case strings for postgres username creation #471

drshrey opened this issue May 6, 2019 · 0 comments · Fixed by #472
Labels
P/High Priority: High T/Bug Type: Bug

Comments

@drshrey
Copy link
Contributor

drshrey commented May 6, 2019

Currently, when we create a postgres username, we don't encapsulate it around double quotes. This leads to postgres, by default, converting all chars to lower case. However, we should the username output to the codeamp user as upper and lower case chars, so when they try logging in with the user, they get authentication failures.

We can solve this by encapsulating the username in the CREATE USER string with double quotes as mentioned here - https://dev.to/lefebvre/dont-get-bit-by-postgresql-case-sensitivity--457i.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P/High Priority: High T/Bug Type: Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant