Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3678 Weergaven

I have application written in PHP, and I would like to authenticate the user from PHP page and redirect to the ODOO without letting him to enter the credientials.

What I understood the /web/login route authenticate the user and set the cookie name "session_id" with the value. I made a route /login that implements authenticate method and pass the database, login  and password 


from odoo.http import request, route, Controller


class Auth(Controller):


    @route('/login', auth='none', type="json")

    def login(self, db, login, password):

        request.session.authenticate(db, login, password)


Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
okt. 25
11518
2
jul. 24
3236
1
jun. 24
5614
1
okt. 23
98
1
aug. 23
2194