mirror of
https://github.com/koel/koel.git
synced 2026-04-26 09:15:59 +03:00
[GH-ISSUE #432] http://localhost:8000/api/me 401 (Unauthorized) #305
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#305
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hiennc24 on GitHub (Sep 1, 2016).
Original GitHub issue: https://github.com/koel/koel/issues/432
Hey Phannan
When I created admin account:
and I run : php artisan koel:init
After I login using account this, it's show bug : "http://localhost:8000/api/me 401 (Unauthorized)".
Please help fix bug this. Thank you so much.
@BernardGoldberger commented on GitHub (Sep 5, 2016):
@Nguyenchathien Are you saying you were able to login? where exactly do you get the error?
@hiennc24 commented on GitHub (Sep 7, 2016):
@bdgold I open console on chrome browser
@BernardGoldberger commented on GitHub (Sep 7, 2016):
@Nguyenchathien you are getting the error because its wrong username or password.
You will have to tack it down to see where it went wrong, my guess would be its in the env, maybe an extra character or even a space in the password.
Remember, you can check the users table to verify the username, you can also use
php artisan tinkerto do aHash::check('123456', 'here paste the password hash')and it should tell youtrueorfalse.@hiennc24 commented on GitHub (Sep 8, 2016):
@bdgold I have fixed this. Thank you so much
@fuzzymannerz commented on GitHub (Sep 8, 2016):
I'm currently having the same issue. The password and login e-mail are correct, I have dropped the entire table and created it again and the same thing happens.
I will try to figure it out and report back.
@pabsroq commented on GitHub (Sep 9, 2016):
@Nguyenchathien how did you fix it?
@morph1904 commented on GitHub (Sep 9, 2016):
Hi I have just had the same issue and it seems the php artisan koel:init command is not hashing the password in the db and is storing it plain text.
when i try to login using the password it does not let me in. i have tried hashing the password and updating the DB but this does not work.
I updated the password in the DB with the hashed version the ensured that the ctype php extension was installed and that corrected my issue
@BernardGoldberger commented on GitHub (Sep 9, 2016):
Can we have the full console output for
koel:init.@morph1904 commented on GitHub (Sep 9, 2016):
@fuzzymannerz commented on GitHub (Sep 9, 2016):
I have the same output with the addition of:
The password in the DB is not hashed either.
@fuzzymannerz commented on GitHub (Sep 9, 2016):
As a workaround I created the password hash by running
php artisan tinkerthenecho Hash::make('passwordhere');and copying the password into the database. It now works.@morph1904 commented on GitHub (Sep 9, 2016):
That's the same as what I did.
@BernardGoldberger commented on GitHub (Sep 9, 2016):
What version of koel are you guys running?
@fuzzymannerz commented on GitHub (Sep 9, 2016):
I'm running the current release - 3.3.0
@morph1904 commented on GitHub (Sep 9, 2016):
Same here. Downloaded today.
@BernardGoldberger commented on GitHub (Sep 9, 2016):
Ok, I believe I introduced the issue with https://github.com/phanan/koel/pull/420/commits/47ae18b5349155089151902c3b516ee21447e4a3.
To verify, can you please do
git checkout v3.3.0and then try again.