Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
4413 Visninger

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
Kassér
Bedste svar

Hi,

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

if request.session.uid:

Thanks

Avatar
Kassér
Forfatter Bedste svar

Yes That was it.

Thank You <3

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
5
aug. 25
4711
0
aug. 25
136
2
aug. 25
1437
2
aug. 25
706
5
aug. 25
10177