Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
3867 Tampilan

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?

Avatar
Buang
Penulis Jawaban Terbai

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')

},

});

 

Avatar
Buang
Jawaban Terbai

You can do it from

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

Thank you

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Mei 25
1660
13
Sep 24
193358
2
Jul 24
12915
0
Jul 24
1977
0
Nov 22
2639