Odoo Help

0

How to implement the openerp v7 forgot password functionality in client app?

By
Hammad hussain qureshi
on 5/3/15, 2:22 PM 568 views

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?

0

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

},

});

 

0
Mahmoud
On 5/4/15, 3:20 AM

You can do it from

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

Thank you

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 5/3/15, 2:22 PM
Seen: 568 times
Last updated: 5/4/15, 4:14 AM