Code Monkey home page Code Monkey logo

Comments (12)

mikecao avatar mikecao commented on May 12, 2024 2

@SoftCreatR you have a typo, it's umami not unami

from umami.

martin-ro avatar martin-ro commented on May 12, 2024

Same problem here

from umami.

snird avatar snird commented on May 12, 2024

I'm actually confused, the code here that created password seems to not use the SALT at all:
https://github.com/mikecao/umami/blob/b392a51676fc314df7b338bf790c8af8fc64fd6c/lib/crypto.js#L28

it just pass salt rounds, let bcrypt use a random SALT.
maybe I miss something here so I'll wait for the author (:

from umami.

mikecao avatar mikecao commented on May 12, 2024

The password function does not consider the HASH_SALT in your .env file. It chooses a random salt. Can you try updating the password in the database to another value and see if that works?

from umami.

snird avatar snird commented on May 12, 2024

Yes.
I manually generated a pass using bcrypt.hash() and set it on the database.
This allowed me to connect.

from umami.

jkyngan avatar jkyngan commented on May 12, 2024

i execute the following sql and it works
insert into account (username, password, is_admin) values ('admin', '$2b$10$BUli0c.muyCW1ErNJc3jL.vFRFtFJWrT8/GcR4A.sUdCznaXiqFXa', true);
found in the last line of schema.mysql.sql

from umami.

mikecao avatar mikecao commented on May 12, 2024

Latest push updated the hashes in the sql files just in case, though the original ones should have worked.

from umami.

SoftCreatR avatar SoftCreatR commented on May 12, 2024

I'm still unable to login, even with a self generated hash.

from umami.

mikecao avatar mikecao commented on May 12, 2024

@SoftCreatR can you try pulling the latest version? It was incorrectly reporting invalid login/password when it could be due to some other issue.

from umami.

SoftCreatR avatar SoftCreatR commented on May 12, 2024

Nope, no success.

image

image

from umami.

SoftCreatR avatar SoftCreatR commented on May 12, 2024

Oh god... 😸

from umami.

mikecao avatar mikecao commented on May 12, 2024

Seems like issues are resolved. Closing this.

from umami.

Related Issues (20)

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.