Skip to content

How can I reset the admin account? #1107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zefanja opened this issue Oct 14, 2019 · 4 comments
Closed

How can I reset the admin account? #1107

zefanja opened this issue Oct 14, 2019 · 4 comments

Comments

@zefanja
Copy link

zefanja commented Oct 14, 2019

Describe the bug
I have forgot my admin account credentials. How can I reset them? I've installed koel some months ago, but didn't use it for a long time, so I can't remember what I've entered during setup. Is there a way to reset the admin account without reinstalling?

Environment

  • Koel version: v4.1.0
  • OS: Ubuntu 18.04
@syahnur197
Copy link

in your terminal run the following command

php artisan tinker

$user = User::find(insert your user id here); // hit enter
$user->password = bcrypt('thisIsYourNewPassword'); // hit enter
$user->save(); // hit enter

then exit tinker

@phanan
Copy link
Member

phanan commented Oct 17, 2019

What @syahnur197 said – basically using tinker. I may add some koel-specific commands to manage users in the future as well, but it's not very high on my list TBH.

@phanan phanan closed this as completed Oct 17, 2019
@JCDeen
Copy link

JCDeen commented Oct 29, 2020

what credentials can I user to log in to koel to demo it (on GitPod)
something like koel@koel.com / demo
?
OR
how can I insert something into users table to do so ?

@hulet
Copy link

hulet commented Dec 14, 2024

For anyone finding this in the future you can now run

php artisan koel:admin:change-password

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants