harikutty5896 / online-voting-system-using-PHP

Online Voting System using PHP and Mysql with AdminLTE Theme
https://voting-system-kings.herokuapp.com/
36 stars 30 forks source link

Incorrect Password #1

Open SabbyDude opened 1 year ago

SabbyDude commented 1 year ago

I have added an entry in the voters sql but it keeps saying Incorrect Password even though it is correct

CwabyDaniels commented 1 year ago

I'm suffering from the same issue. Keeps saying incorrect Password

Gamolive commented 1 year ago

Try to convert it to hash string

shreyas-0203 commented 1 year ago

WHat are the login credentials to sign in very first timre? Everytime it throws Voter id not found.

bacigala commented 11 months ago

@shreyas-0203 there are no voters created by default, they need to be created in the admin menu OR imported to the database

@SabbyDude @CwabyDaniels passwords are stored in the database as an output of the function password_hash(password, PASSWORD_DEFAULT)

Vas007tk commented 10 months ago

@bacigala so what exactly needs to be done to dodge the "incorrect password" issue?

bacigala commented 10 months ago

you have to edit records in the database, the column "password" in the table "admin" should contain hashed password, to hash a password, use a php function password_hash(password, PASSWORD_DEFAULT) where "password" is the password to be hashed, or you can use this webpage to generate the hash

the same applies to the table "voters"