Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I'm new to node.js/express!

In my case I have a chat site and a chat admin site. When I go in _____:3000/admin, it asks for a password in a form. Now how would I check if the password is the correct password, not in the client's java-script? I'm trying to stay away from php, because its too confusing... How would I do that and then send a html file which can not be accessed by the user?

This is not like the other questions because I DON'T want/need 'usernames'

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
232 views
Welcome To Ask or Share your Answers For Others

1 Answer

You can use Passport module for local authentication.Keep a database of users with hashed passwords, using bcrypt module.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...