Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
4426 Zobrazení

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
Zrušit
Nejlepší odpověď

Hi,

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

if request.session.uid:

Thanks

Avatar
Zrušit
Autor Nejlepší odpověď

Yes That was it.

Thank You <3

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
zář 25
246
5
srp 25
4837
2
srp 25
1511
2
srp 25
738
5
srp 25
10206