F
Filamentβ€’3mo ago
Eren

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:
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');...
Jump to solution
14 Replies
Dennis Koch
Dennis Kochβ€’3mo ago
Where is the user data coming from? Especially the passwords?
Srccode
Srccodeβ€’3mo ago
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.
Eren
Erenβ€’3mo ago
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.
Dennis Koch
Dennis Kochβ€’3mo ago
And you moved the database, too?
Eren
Erenβ€’3mo ago
I did php artisan migrate but without any data. thats why i create new user. I created 2 users but couldn't login.
Dennis Koch
Dennis Kochβ€’3mo ago
Oh, so you created both users on production after migrating?
Eren
Erenβ€’3mo ago
yes
Dennis Koch
Dennis Kochβ€’3mo ago
That's weird. Did you create them via make:filament-user? Or via Registration form?
Eren
Erenβ€’3mo ago
via make:filament-user btw i logged in probably now. I cleaned some cache etc. but now i got 403 page.
Dennis Koch
Dennis Kochβ€’3mo ago
You implemented canAccessPanel on your user model?
Eren
Erenβ€’3mo ago
oh my bad. after deploy few things. User modal changed again. I fixed it but still i got credentials error. Can not login.
Dennis Koch
Dennis Kochβ€’3mo ago
I thought that was just fixed? Are you wiping the DB during deployment?!
Eren
Erenβ€’3mo ago
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
Eren
Erenβ€’3mo ago
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');
}
public function canAccessPanel(Panel $panel): bool
{
return str_ends_with($this->email, '@domain.com');
}
Want results from more Discord servers?
Add your server
More Posts
On edit resource Unsaved changes alerts.I added ->unsavedChangesAlerts(); to the provider, I tested it and on new record saving it working pMutate pivot data on parent creationHello! I have 2 entities called "Contact" and "Message". I added a pivot table between them using BeProduction ErrorI got an error after production. Whats the problem. Didnt get it. ``` PHP Fatal error: Could not cUnable to resolve repeater text input problemi am using repeater. When i define some base price inside text input its not taking after typed 500;Unable to retrieve the file_size for file at location: livewire-tmp/livewire-tmp. For files more thaHello i am trying to upload a file that is more than 100mb but it fails. Even though it shows When iPreviewing Images from Database in File Upload SectionI have an image URL stored in my database that was inserted directly, but I want to preview that imaTable pagination not visible in cluster resource tableIn a table within a Cluster, the pagination tools are not displayed as they are in a normal resourceHow can I show an icon as the label for a Table Builder columnI want to show an image or a blade icon as the label for a Table Builder column. Is there any way toCall to a member function getPlugin() on null despite having a default panelFresh install of Filament and tried to install this plugin https://filamentphp.com/plugins/croustibawire-elements-modal issueI implemented wire-elements-modal and it works fine except that I am not able to adjust the size of