Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
4646 Vistas

Hi

i am using Odoo 12 an i need to check if user is logged in or not in website side ( not web side )

is there a way to do this?


Avatar
Descartar
Mejor respuesta

Hi,

If you are inside the controller, you can check like this:

if request.session.uid:

Thanks

Avatar
Descartar
Autor Mejor respuesta

Yes That was it.

Thank You <3

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
sept 25
2131
3
oct 25
149265
1
sept 25
1288
4
sept 25
6001
2
ago 25
1306