These credentials do not match our records.I dont know whats happening.
I added 2 different users to check. Both of them not working. Can not login panel. It doesnt match records. How ? how it is possible π Its on production.
Solution:Jump to solution
if anyone got any problems like that you can disable hasVerified part and you can login. Its really odd.
```public function canAccessPanel(Panel $panel): bool
{
return str_ends_with($this->email, '@domain.com');...
14 Replies
Where is the user data coming from? Especially the passwords?
Hey! By any chance you are hashing the password in your user model or any other place before saving? I discovered that when we are creating the user, filament hashes the password and i was hashing the password in the user model and it ended up becoming double hashed and was causing me the same issue.
I didnt touch anything in User Model. I just move to production. After that password or email doesnt work. Its working on local machine.
Nope.
And you moved the database, too?
I did php artisan migrate but without any data. thats why i create new user. I created 2 users but couldn't login.
Oh, so you created both users on production after migrating?
yes
That's weird. Did you create them via
make:filament-user
? Or via Registration form?via make:filament-user btw i logged in probably now. I cleaned some cache etc. but now i got 403 page.
You implemented
canAccessPanel
on your user model?oh my bad. after deploy few things. User modal changed again. I fixed it but still i got credentials error. Can not login.
I thought that was just fixed? Are you wiping the DB during deployment?!
Nope. It didn't fix. I dont do any db things during deployment. I have one seeder for my language seeder. because it will be multi language and dynamic routes. but its just few column for language. I dont think its a problem for User column.
Not working at all. I tried everyting
if (Hash::check('ererer123', $user->password)) {. echo "Password correct.\n"; . } else { . echo "Password wrong.\n"; . } Password correct. > I tried to check password from db with tinker. Password is correct but still can not login. Probably this make me crazy for a while π if you have an idea. Please let me know. thank you
Solution
if anyone got any problems like that you can disable hasVerified part and you can login. Its really odd.