Encryption disappears when adding a column.

When adding a column User Encryption is disabled, it does not work, and when logging in, a message appears that the password is incorrect.
12 Replies
toeknee
toeknee2mo ago
Please provide more details with what you mean]
Saleh AL-Arami
Saleh AL-Arami2mo ago
When I added a field to the Users table, the encryption process disappeared. When I log in, even though I added the correct email and password, it does not register me to the control panel, and when I add a new user, it is sent to the database without the password encryption process.
toeknee
toeknee2mo ago
So... the only want the encryption will dissapear is if you are not doing it..... I asume you built a users recourse
Saleh AL-Arami
Saleh AL-Arami2mo ago
I have modified the user table structure.
toeknee
toeknee2mo ago
The table doesn't dictate the encryption casting, that's handled as part of the save method. either in the model or on the resource/page.
Saleh AL-Arami
Saleh AL-Arami2mo ago
I know, but the code did not work when I modified the structure of the table, nor did it work before, until I modified the structure of the table. It crashed.
toeknee
toeknee2mo ago
So provide the previous code and the new code.
Saleh AL-Arami
Saleh AL-Arami2mo ago
Okay but it has changed The model User specific
toeknee
toeknee2mo ago
If you ensure the model has: protected $casts = [ 'password'=> 'hashed', ]; it will has the password...
Saleh AL-Arami
Saleh AL-Arami2mo ago
Thank you brother, you worked well with me. I want to show a login interface that I have prepared myself I have set it up and displayed it, but when I press login, it does not access the control panel, and also the color of the The password and username are white.
Dennis Koch
Dennis Koch2mo ago
Please open a new thread for every question and provide some code.
Want results from more Discord servers?
Add your server