Implementado Logs de Pagos de Stripe y Historial de conexiones de seguridad
This commit is contained in:
+10
-1
@@ -270,7 +270,16 @@ class HomeApiPoints(models.Model):
|
||||
db_table = 'home_api_points'
|
||||
|
||||
def __str__(self):
|
||||
return f"Cuenta {self.accountID} - PV: {self.vp}, DP: {self.dp}"
|
||||
return f"Cuenta {self.accountID} - PV: {self.vp}, DP: {self.dp}"
|
||||
|
||||
class LoginAttempt(models.Model):
|
||||
username = models.CharField(max_length=100)
|
||||
status = models.CharField(max_length=50) # Ejemplo: 'Éxito' o 'Fracaso'
|
||||
ip_address = models.GenericIPAddressField() # IP del intento de inicio de sesión
|
||||
timestamp = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.username} - {self.status} - {self.timestamp}"
|
||||
|
||||
|
||||
class StripeLog(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user