I am developing a Jaber client using Smack and Wildfire.
Although I am quite familiar with the Smack API, Wildfire is completely unchartered territory for me.
I want a user to be able to request for a new password, if they forget the one they have.
In this scenario, the user clicks on a button to request a new password, and a new password is randomly generated and emailed to the user.
How do develop this feature?
I thinkign something along the lines of sending a IQ packet from the client to the server (but who will it be from?), the server detecting this request, then generating the random password (don’'t know how, yet), then encrypting this password, and updating the jiveuser table, and finally sending an email to the user with the new password.
I looked through the Spark src code, hoping to find somethign like this, but nada…
you may want to write a Wildfire Plugin, so it may be more a dev question. I assume that a web page would be a much better way to input the userid and the email address - but one should need to enter something more as this could allow everyone to abuse the web page.
The plugin itself could verify the userid and email address using the JIVEVCARD or JIVEUSER table and send an email with the new password. So you would use Wildfires code to send the email and to set the password - this will also make sure that you don’'t have problems with the database cache.