sosedoff / pgweb

Cross-platform client for PostgreSQL databases
https://sosedoff.github.io/pgweb
MIT License
8.63k stars 732 forks source link

Long passwords or passwords with spaces don't work (One of the two) #210

Closed krainboltgreene closed 7 years ago

krainboltgreene commented 7 years ago

Set my password to "agape wichita laden bavaria audacity", tried to log in, and it failed.

sosedoff commented 7 years ago

I just tested auth by setting user/pass via command line options and env variable using your example password and everything works. Could you provide full command that you're using to start pgweb? Also, which version are you on?

krainboltgreene commented 7 years ago

Sure. The setup is via the "Deploy To Heroku" button.

  1. I pressed the button.
  2. I created the instance.
  3. I deleted the hobby addon.
  4. I added a new Standard 0 database.
  5. I restarted.
  6. I changed the AUTH_PASS url to the password.
  7. I restarted.
  8. I tried to login, failed.
  9. I changed to xxxx.
  10. I restarted.
  11. I successfully log in.
sosedoff commented 7 years ago

Ah, i see. You're trying to set password with spaces as an environment variable. AFAIK that wont work on Heroku and thats why you're getting auth failures.

krainboltgreene commented 7 years ago

Dang!

On Fri, Dec 30, 2016 at 10:53 AM, Dan Sosedoff notifications@github.com wrote:

Ah, i see. You're trying to set password with spaces as an environment variable. AFAIK that wont work on Heroku and thats why you're getting auth failures.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sosedoff/pgweb/issues/210#issuecomment-269808114, or mute the thread https://github.com/notifications/unsubscribe-auth/AAUb2aKbtfzLtQC8aWdBu7MrllJVfGg3ks5rNVMhgaJpZM4LUsSQ .

-- Kurtis Rainbolt-Greene, Software Developer Founder of Difference Engineers

2985 San Marino St. Los Angeles, CA 90006 202-643-2263

sosedoff commented 7 years ago

Closing this since the issue has nothing to do with pgweb.