Git Product home page Git Product logo

byteblogger's People

Contributors

l10n37 avatar

Watchers

 avatar  avatar

byteblogger's Issues

No log in

Server listening on port 3000
Executing (default): SELECT `sid`, `expires`, `data`, `createdAt`, `updatedAt` FROM `Sessions` AS `Session` WHERE `Session`.`sid` = 'NVpRbT9UnU6t8QtonUkKRiQ1jh5dtVVa';
Signing up user: lfsanderson
Provided password: Password!
Executing (default): SELECT `id`, `username`, `password` FROM `user` AS `user` WHERE `user`.`username` = 'lfsanderson';
Hashed password: $2b$10$vdvHidr8wp2N/qivcThu0.NCg5vDlf0wLGG9v114xmIIJW9IpcBoy
Executing (default): INSERT INTO `user` (`id`,`username`,`password`) VALUES (DEFAULT,?,?);
User created: lfsanderson
Executing (default): SELECT `sid`, `expires`, `data`, `createdAt`, `updatedAt` FROM `Sessions` AS `Session` WHERE `Session`.`sid` = 'NVpRbT9UnU6t8QtonUkKRiQ1jh5dtVVa';
Executing (default): UPDATE `Sessions` SET `expires`=?,`data`=?,`updatedAt`=? WHERE `sid` = ?
Executing (default): SELECT `sid`, `expires`, `data`, `createdAt`, `updatedAt` FROM `Sessions` AS `Session` WHERE `Session`.`sid` = 'NVpRbT9UnU6t8QtonUkKRiQ1jh5dtVVa';
Executing (default): SELECT `id`, `username`, `password` FROM `user` AS `user` WHERE `user`.`username` = 'lfsanderson';
Comparing password: <Buffer 50 61 73 73 77 6f 72 64 21>
Stored hashed password: $2b$10$PaJ4EgLY4dwZg/q5wv1O9OdNg5tqUZCDzMsXJVLAenf5g9GaIx38S

The Binary representation of the password from buffer is the same as plain text, forgot to convert to string.
The issue is the original logged bcrypt hash does not match the hash stored in the database

Should be 60 characters long (both are), not sure what is happening.
Prevents log in after account creation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.