Skip to content

Unable to login into Lychee after upgrade #2437

Answered by ildyria
niladrishekhar asked this question in Q&A
Discussion options

You must be logged in to vote

Can you try:

git pull # that will put you on master
php artisan migrate # that will put the database on the latest version

If you know the username, you can try:

php artisan lychee:update_user <username> <password>

If that fails (because username is still hashed in the database, then try from the CLI:

mysql -u <DB USER> -p <DB NAME> -e 'UPDATE users SET username = "admin", password = "$2y$10$YXmyoVbQYcsvTqUpesuTFezp9y6IZmIvssxcIihESfnqiy12yN93y" WHERE id = 1;' 

This will update your admin user to username admin and password admin. From that point you should be able to login and change things.

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ildyria
Comment options

Answer selected by niladrishekhar
@niladrishekhar
Comment options

@ildyria
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ildyria
Comment options

@niladrishekhar
Comment options

@niladrishekhar
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants