Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 61a04e5040 | |||
| e5a0caa8b6 |
@@ -315,5 +315,6 @@ p.price {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.texto-ajustado {
|
.texto-ajustado {
|
||||||
overflow-wrap: anywhere;
|
overflow-wrap: break-word;
|
||||||
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -245,9 +245,9 @@ def login(request: HttpRequest):
|
|||||||
data: str = cache.get(f"tries_login_{username}")
|
data: str = cache.get(f"tries_login_{username}")
|
||||||
logins: int
|
logins: int
|
||||||
if data is None:
|
if data is None:
|
||||||
logins = int(data)
|
|
||||||
else:
|
|
||||||
logins = 0
|
logins = 0
|
||||||
|
else:
|
||||||
|
logins = int(data)
|
||||||
|
|
||||||
if logins >= 5:
|
if logins >= 5:
|
||||||
# Si ha fallado 5 intentos de login...
|
# Si ha fallado 5 intentos de login...
|
||||||
|
|||||||
Reference in New Issue
Block a user