콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5908 화면

Hi all,

I try calling function session_authenticate(db, login, password) to verify a user. But server returned a error 

TypeError: authenticate() takes at least 4 arguments (3 given)

Here is my code, I called it in a function which I overriden in module PosWidget by : "module.PosWidget.include".

instance.session.session_authenticate(instance.session.db, instance.session.login, password);
// password : a string which is entered by user in text box.

You can find function session_authenticate(db, login, password) in /web/static/src/js/chrome.js and /web/static/src/js/openerpframework.js.

Function authenticate() (on server) in /web/controllers/main.py

Thanks all


아바타
취소
베스트 답변

Out of curiosity, how did you resolve this issue? I am trying to do something simililar.

아바타
취소