Spaces:
Runtime error
Runtime error
coder
commited on
Commit
·
19de612
1
Parent(s):
edc7097
update login
Browse files- Home.py +4 -5
- core/controllers/pages_controller.py +3 -6
- pages/Teoria.py +4 -4
Home.py
CHANGED
|
@@ -94,11 +94,10 @@ class Home(Page):
|
|
| 94 |
# secciones
|
| 95 |
columna_bienvenido, columna_botones = self.get_body().columns(
|
| 96 |
[0.7, 0.3], gap="medium")
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
self.agregar_card_about_me(columna_botones)
|
| 102 |
|
| 103 |
|
| 104 |
if __name__ == "__main__":
|
|
|
|
| 94 |
# secciones
|
| 95 |
columna_bienvenido, columna_botones = self.get_body().columns(
|
| 96 |
[0.7, 0.3], gap="medium")
|
| 97 |
+
self.agregar_card_bienvenido(columna_bienvenido)
|
| 98 |
+
self.agregar_card_teoria(columna_botones)
|
| 99 |
+
self.agregar_card_live_demo(columna_botones)
|
| 100 |
+
self.agregar_card_about_me(columna_botones)
|
|
|
|
| 101 |
|
| 102 |
|
| 103 |
if __name__ == "__main__":
|
core/controllers/pages_controller.py
CHANGED
|
@@ -73,14 +73,11 @@ class Page():
|
|
| 73 |
return self.get_global('logged_in', False)
|
| 74 |
|
| 75 |
def login(self):
|
| 76 |
-
_usuario = self.get_global("USUARIO")
|
| 77 |
-
_registros = self.get_global("registros", dict({}), True)
|
| 78 |
_factor = int(self.get_global('FPSSWD',"20", True))
|
| 79 |
print(_factor)
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
if self.codificar(_usuario, _factor) in _registros:
|
| 83 |
-
if self.codificar(self.get_global("PASSWORD"), _factor) == _registros[self.codificar(_usuario, _factor)]:
|
| 84 |
del self.page().session_state["USUARIO"]
|
| 85 |
del self.page().session_state["PASSWORD"]
|
| 86 |
self.set_global('logged_in', True)
|
|
|
|
| 73 |
return self.get_global('logged_in', False)
|
| 74 |
|
| 75 |
def login(self):
|
| 76 |
+
_usuario = str(self.get_global("USUARIO"))
|
|
|
|
| 77 |
_factor = int(self.get_global('FPSSWD',"20", True))
|
| 78 |
print(_factor)
|
| 79 |
+
if self.get_global(self.codificar(_usuario,_factor), None, True) is not None:
|
| 80 |
+
if self.codificar(self.get_global("PASSWORD"), _factor) == self.get_global(self.codificar(_usuario,_factor), None, True):
|
|
|
|
|
|
|
| 81 |
del self.page().session_state["USUARIO"]
|
| 82 |
del self.page().session_state["PASSWORD"]
|
| 83 |
self.set_global('logged_in', True)
|
pages/Teoria.py
CHANGED
|
@@ -206,10 +206,10 @@ class Teoria(Page):
|
|
| 206 |
def build(self):
|
| 207 |
# secciones
|
| 208 |
columna_principal = self.get_body().columns(1, gap="small")[0]
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
|
| 214 |
|
| 215 |
if __name__ == "__main__":
|
|
|
|
| 206 |
def build(self):
|
| 207 |
# secciones
|
| 208 |
columna_principal = self.get_body().columns(1, gap="small")[0]
|
| 209 |
+
|
| 210 |
+
self.agregar_card_fundamentos(columna_principal)
|
| 211 |
+
self.agregar_card_avances(columna_principal)
|
| 212 |
+
self.agregar_card_fuentes(columna_principal)
|
| 213 |
|
| 214 |
|
| 215 |
if __name__ == "__main__":
|