コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
3859 ビュー

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

アバター
破棄
関連投稿 返信 ビュー 活動
0
5月 25
1659
13
9月 24
193348
2
7月 24
12904
0
7月 24
1976
0
11月 22
2635