fix(auth): scope email uniqueness to active users

This commit is contained in:
2026-09-03 09:59:21 -03:00
parent ddb8c3743f
commit 0baad641d5
7 changed files with 73 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;
#[Fillable(['nombre_apellido', 'email', 'password', 'dni', 'telefono', 'google_id', 'rol_codigo', 'tenant_codigo'])]
#[Hidden(['password', 'remember_token'])]
#[Hidden(['password', 'remember_token', 'active_email'])]
class User extends Authenticatable
{
/** @use HasFactory<UserFactory> */