bnjbvr / lolcampz

Collection of scripts to easily set up your tent instance
3 stars 1 forks source link

InvalidHash at /signin #4

Closed Cacauu closed 11 years ago

Cacauu commented 11 years ago

I tried to set up lolcampz on my Mac and it works well, I can do discovery and all the stuff but I can't log in to Tent-Omnibus. I changed my password during set-up and I try to use admin + PASSWORD for logging in but I get

BCrypt::Errors::InvalidHash at /signin
invalid hash

Ruby    /var/lib/gems/1.9.1/gems/bcrypt-ruby-3.1.1/lib/bcrypt/password.rb: in initialize, line 60
Web POST 192.168.0.50/signin

when I try to log in.

Would be great if you could help me with that and tell my why it occurs and if there is a way to fix it.

bnjbvr commented 11 years ago

This happened to me when I was forgetting to put single quotes around the password. The export line should have the following formatting:

export PASSPHRASE='hash'

Could you check that it's correct?

Cacauu commented 11 years ago

Yeah, that's correct. Could a reason be that admin is not in single quotes in user.sh?

bnjbvr commented 11 years ago

For posterity: the password was not encoded with bundle exec rake encrypt_passphrase[MYPASSPHRASE].