Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
4326 Visualizações

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
Cancelar
Melhor resposta

Hi,

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

if request.session.uid:

Thanks

Avatar
Cancelar
Autor Melhor resposta

Yes That was it.

Thank You <3

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
5
ago. 25
9766
2
jul. 25
931
4
jun. 25
1046
1
jun. 25
1348
1
mai. 25
1298