Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
3847 มุมมอง

Hi folks, I have a phonegap app that communicates with the openerp server, I want to implement the forgot password functionality in my app some as the forgot password button in the openerp login screen (after enabling this option from the openerp settings). 

Is there's any good way to achieve this?

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Ok finally I have done it. I have created the forgot password functionality in my client app. I have made the xmlrpc call to the base res.users's action_reset_password method as:



$.xmlrpc({

url: server_url + 'object',

methodName: 'execute',

dataType: 'jsonrpc',

params: [dbname, userId, password, 'res.users', 'action_reset_password', [id]], // id: id of the user whose pass need to be reset

success: function(response, status, jqXHR) {

    alert('success')  

},

error: function(response, status, jqXHR) {

  alert('error')

},

});

 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You can do it from

Settings >> General Settings >> Enable password reset from Login page

Thank you

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ค. 25
1655
13
ก.ย. 24
193326
2
ก.ค. 24
12898
0
ก.ค. 24
1974
0
พ.ย. 22
2634