question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

can login with nestjsadmin

See original GitHub issue

hey guys , i have install nestjs-admin and config it correctly ,

image image

and then i try to create an adminuser by npx nestjs-admin createAdminUser and input username and passwd . However , the process havs never ended .

image

when i check database , i found it insert a record successfully.

image

when i check the link with /admin/login , it show the admin panel . Oh yep , i try to login using the username and passwd which i have entered but fail and print ‘Invalid credentials’ .

i dont know how to solve it and can u give me some advice.

thx very much , my bro!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:10

github_iconTop GitHub Comments

8reactions
OoDeLallycommented, Mar 14, 2021

I’m not sure whether the problem comes from createAdminUser. I’ve manually create a password hash with https://bcrypt-generator.com/, and replaced it in my db’s adminUser.password. Now it works, but I don’t know why 🤷

1reaction
OoDeLallycommented, Mar 14, 2021

Same here 😕

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom authentication - nestjs-admin.com
NestJS Admin provides an easy way to validate the username/password against whatever makes sense in your application (your own User entity, a list...
Read more >
Authentication | NestJS - A progressive Node.js framework
Let's flesh out our requirements. For this use case, clients will start by authenticating with a username and password. Once authenticated, the server...
Read more >
Nest.js Step-by-Step: Part 3 (Users and Authentication)
Use Nest.js in a User's Module create a user and locate them in the database, and shows how to add the Auth Module...
Read more >
NestJS: How to Implement Session-Based User Authentication
Now that you have all these put in place, you still cannot log in a user because there is nothing to trigger the...
Read more >
How to Manage User Access in NestJS - YouTube
Your browser can 't play this video. ... How to Manage User Access in NestJS | Authorization with CASL ... 18K views 10...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found