[GH-ISSUE #1107] How can I reset the admin account? #650

Closed
opened 2026-02-26 02:33:51 +03:00 by kerem · 4 comments
Owner

Originally created by @zefanja on GitHub (Oct 14, 2019).
Original GitHub issue: https://github.com/koel/koel/issues/1107

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
Originally created by @zefanja on GitHub (Oct 14, 2019). Original GitHub issue: https://github.com/koel/koel/issues/1107 **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
kerem closed this issue 2026-02-26 02:33:51 +03:00
Author
Owner

@syahnur197 commented on GitHub (Oct 16, 2019):

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

<!-- gh-comment-id:542783495 --> @syahnur197 commented on GitHub (Oct 16, 2019): 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
Author
Owner

@phanan commented on GitHub (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.

<!-- gh-comment-id:543062069 --> @phanan commented on GitHub (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.
Author
Owner

@JCDeen commented on GitHub (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 ?

<!-- gh-comment-id:718390642 --> @JCDeen commented on GitHub (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 ?
Author
Owner

@hulet commented on GitHub (Dec 14, 2024):

For anyone finding this in the future you can now run

php artisan koel:admin:change-password

<!-- gh-comment-id:2542902049 --> @hulet commented on GitHub (Dec 14, 2024): For anyone finding this in the future you can now run `php artisan koel:admin:change-password`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#650
No description provided.