Spaces:
Sleeping
Sleeping
Auth Fix
Browse files- app.py +1 -2
- auth.py +2 -2
- encrypter.py +0 -2
app.py
CHANGED
|
@@ -24,8 +24,7 @@ def perform(input1, input2):
|
|
| 24 |
print("La autorizaci贸n es: ", autorizacion)
|
| 25 |
|
| 26 |
info_window = ""
|
| 27 |
-
|
| 28 |
-
#Despu茅s ejecuta la masa.
|
| 29 |
if autorizacion is True:
|
| 30 |
|
| 31 |
path = mass(input1,input2)
|
|
|
|
| 24 |
print("La autorizaci贸n es: ", autorizacion)
|
| 25 |
|
| 26 |
info_window = ""
|
| 27 |
+
|
|
|
|
| 28 |
if autorizacion is True:
|
| 29 |
|
| 30 |
path = mass(input1,input2)
|
auth.py
CHANGED
|
@@ -14,7 +14,7 @@ def authenticate(username, password):
|
|
| 14 |
lista_usuarios = ast.literal_eval(cadena_usuarios)
|
| 15 |
print("La lista qued贸 as铆:")
|
| 16 |
print(lista_usuarios)
|
| 17 |
-
|
| 18 |
|
| 19 |
for u, p, f in lista_usuarios:
|
| 20 |
#Si el usuario y la contrase帽a son correctas...
|
|
@@ -23,7 +23,7 @@ def authenticate(username, password):
|
|
| 23 |
gr.State.usuario = username
|
| 24 |
#Bienvenida al usuario...
|
| 25 |
print("Welcome ", gr.State.usuario)
|
| 26 |
-
if f
|
| 27 |
print("Usuario Nuevo...")
|
| 28 |
else:
|
| 29 |
print("Usuario Normal...")
|
|
|
|
| 14 |
lista_usuarios = ast.literal_eval(cadena_usuarios)
|
| 15 |
print("La lista qued贸 as铆:")
|
| 16 |
print(lista_usuarios)
|
| 17 |
+
|
| 18 |
|
| 19 |
for u, p, f in lista_usuarios:
|
| 20 |
#Si el usuario y la contrase帽a son correctas...
|
|
|
|
| 23 |
gr.State.usuario = username
|
| 24 |
#Bienvenida al usuario...
|
| 25 |
print("Welcome ", gr.State.usuario)
|
| 26 |
+
if f == "new":
|
| 27 |
print("Usuario Nuevo...")
|
| 28 |
else:
|
| 29 |
print("Usuario Normal...")
|
encrypter.py
DELETED
|
@@ -1,2 +0,0 @@
|
|
| 1 |
-
|
| 2 |
-
|
|
|
|
|
|
|
|
|