Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3705 Lượt xem

Hello! step to tell you my situation, I have a CRM with several databases of different users, the issue is that the user has to choose their DB and then their account credentials, I was developing a login in php for the user to just put your credentials without having to look for your DB among all in the list, the login is connected to a DB of mine, that upon entering brings the necessary to pass it to odoo so loguea in your DB the user.


The issue is that I do not know how to pass this data to odoo and the user automatically connects to his CRM and is redirected to it. My login is on a host of mine. I was reading the documentation of odoo and other sources and I can not find the solution to my problems, any help you can give me I would appreciate it.

I TRIED THIS: But it does not work

<?php

require_once('ripcord.php');

$url = "https://mypage.com";  //ODOO  Server Url

$db = '111COD';                  //Database Name

$username = 'user@gmail.com';           //UserName

$password = 'password';


$connexion = new xmlrpc_client($url."/xmlrpc/2/common");

//$connexion->setSSLVerifyPeer(0);

$c_msg = new xmlrpcmsg('login');

$c_msg-> addParam(new xmlrpcval($db,"string"));

$c_msg-> addParam(new xmlrpcval($username,"string"));

$c_msg-> addParam(new xmlrpcval($password,"string"));

$c_response = $connexion->send($c_msg);

header('Location: https://mypage.com');

?>

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 18
4844
1
thg 8 24
2289
2
thg 4 24
1593
1
thg 4 24
2137
4
thg 6 16
5094