Giter Club home page Giter Club logo

Comments (7)

tmartin2089 avatar tmartin2089 commented on September 24, 2024

Same problem. Confirmed in DB that username and password are correct.

from keystone-demo.

n-lavrenko avatar n-lavrenko commented on September 24, 2024

+1
Also I get 500 error and response:

{
  detail: "Not a valid BCrypt hash.",
  error: "bcrypt error"
}

I think the problem is in password validation rules: the basic password is plain text: 'demo'
We need to encrypt password and replace 'demo' in /updates/0.0.1-admins.js to encrypted password.

from keystone-demo.

robhung avatar robhung commented on September 24, 2024

Works fine for me

from keystone-demo.

FLYBYME avatar FLYBYME commented on September 24, 2024

Yeah Im getting the same issue

from keystone-demo.

bjwyse avatar bjwyse commented on September 24, 2024

The protection on the User model is preventing the password from being encrypted when creating the admin user.

A workaround is to change isProtected to false for the user data in https://github.com/keystonejs/keystone-demo/blob/master/updates/0.0.1-admins.js#L13.

Then drop the database and restart. This was fine for me as I don't care about the user protection at all.

from keystone-demo.

jstockwin avatar jstockwin commented on September 24, 2024

@bjwyse Is correct above.
Authentication works fine at http://demo.keystonejs.com/, but when you clone it locally the protection is an issue.

If you're trying to get it to work locally, either edit the updates/0.0.10admin.js to remove line 13, and drop the database as suggested above, or simply add a new updates/0.0.2-user.js file, which is identical, but with different user credentials and again no line 13. That way you don't have to drop the database.

I've created an issue on the keystone side of things to see if we can address encryption not working properly when isProtected is set to true.

If people have any insight into this/want to help fix it, let's pick this up on that issue.

from keystone-demo.

nouphaltklm avatar nouphaltklm commented on September 24, 2024

Now the username & Password is [email protected] and admin. Installed via yo. Found the credentials under keystone-starter/updates

from keystone-demo.

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.