-
Notifications
You must be signed in to change notification settings - Fork 193
Deleted users - Constraint violated on login - Soft Deletes #181
Comments
Hi @eleftrik, completely forgot about this situation with soft deleted users. Going to patch this now, thanks! |
Hi @stevebauman, thank you very much, I'll wait for the patch. |
Hi @eleftrik, patched now, but need to add some tests for this before release, but you can definitely utilize |
Thank you @stevebauman, I used dev-master, and now I correctly cannot authenticate as soft deleted user and I got no more database constraint errors. Is there a way to discriminate between an incorrect login (non-existing user, wrong credentials, etc.) and a soft-deleted user which tries to authenticate (entering correct credentials)? Thanks |
No, but that's a great point. I need to add events for this situation so you can add errors to the session if needed. I'll implement this now. |
In my
users
table, If I soft delete a user (deleted_at
is not null), when I try to login as that user, I got a unique constraint violation:How can I
I use Laravel 5.3 authentication scaffolding.
Thank you
The text was updated successfully, but these errors were encountered: