Resetting password doesn't log causer_type. #812
-
When a user resets their password, the activity is logged, but the causer_type is null. I haven't had this issue with any other logging activity. Any idea as to why? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Without the code you are using to reset the password and log the activity we can't help you. |
Beta Was this translation helpful? Give feedback.
-
Sorry, I thought about that after I posted. I use Laravel's built-in system for changing the password. I added this to the User model, but I had the same results before I added it:
|
Beta Was this translation helpful? Give feedback.
-
I have read your initial question wrong. 🤦♂️ |
Beta Was this translation helpful? Give feedback.
-
Is there a way to set the causer in this instance? I want to set it to App\Models\User. |
Beta Was this translation helpful? Give feedback.
I have read your initial question wrong. 🤦♂️
You are talking about the
causer
- during password forget/reset no user is authenticated (otherwise he would use password change). That's why there's nocauser
during password reset.