sychen52/nest-camera-site

Am I supposed to be able to login to https://ip:5000?

Closed this issue · 17 comments

Are we supposed to be able to see our cam images here? A folder called "nest" gets created and the images are stored there, but I can't log into the web interface even after deleting database.json and resetting up new credentials.

Yes, I see the login page on https://ip:5000 and am prompted for a username/password, but it doesn't do anything after I enter them. It redirects me back to the login page. I've tested on Chrome and Firefox.

The behavior doesn't look any different if I use incorrect credentials.

Yes. If I remove database.json, it prompts me to create new credentials when I start the app, but they won't log me in when I go to the server in a browser. The images are still there when is nice, but being able to access the site might be better.

Any way to create a log for the problem logging in?

I did not log that part. If you are willing to try, you can add log around line 32 and 33 in index.js file.

I'm having the same issue, I've never been able to login!

Authentication might not work as I've bypassed credentials checks and I'm getting redirected to login.

I wonder if this is the issue!
npm WARN deprecated crypto@1.0.1: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.

Hi guys, I just added a few lines of log in the user login part. I need to know where you guys failed. Could you git pull and try login again, and paste the console log here?
The log will include your username. if you don't feel comfortable sharing it, you can hide it when you paste.

Hi, thanks for your reply!

npm run start 
> nest-camera-site@1.0.0 start /home/atar/playground/nest-camera-site
> node index

Server started on port 5000
login user:  atar
verify password
null
login user:  atar
verify password

Where it says null I've tried a wrong password!

Thank you for testing it out. I just committed another patch. It may have already fixed it. If not, could you please try again and paste the console log here?

npm run start

nest-camera-site@1.0.0 start /home/atar/playground/nest-camera-site
node index

Server started on port 5000
verify password. hash type: string ; hash length: 60
passed

it didn't work yet

Same issue with 3 different browsers, chrome, firefox, brave!
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic

I don't have another OS!

This time, I think I fixed it. Please let me know whether it works. Thanks again for testing this.

Yep, that worked!

Fixed in 3c94539