@dkayiwa My name is Saurav Jaiswal from India ,and I am eager to get involved in the openMRS community for GSoc; the android related projects especially caught my eye. I have experience in android app development and some in web development as well. I am well into my academic career as a Computer Science student and know that my programming skills would be of great use in these projects.This is my first time interaction with open source community and also in GSoc. I am very eager to contribute in OpenMRS project as to serve in helping the saving lives.
I look forward to working hard for the openMRS community! Thanks for this opportunity
Hi @dkayiwa, sorry about the late reply, been busy with my midsems. I upgraded my platform to 2.2.0-beta, and i later even created a new server altogether using the sdk, and created a platform still with version 2.2.0-beta. On both cases, the rest calls keep failing with a 404 error. So I checked the Rest API documentation and there is no documentation there for a passwordreset resource.
@harisu could you please point me in the righ direction? Maybe I am doing something wrong. I am following the steps you highlighted in the youtube video of your gsoc 2018 final presentation.
@saurav Welcome great to know you are interested in doing GSoc with OpenMRS . I am confused to whether you are interested in this project or the android client which you made mentioned of in your post.
@ryan97, welcome you are using a get request for requesting for a password reset its supposed to be a post request. Surely the reason why your are getting the error. And part of the task for this project is providing that field for creating email during creation of a user if you read well the description. But as at now you can test that using phpmyadmin or the raw mysql command line client to add an email to a user you have created.
@saurav, This thread is for UI For Reset Password Via Email Project. you can find the discussion for Telemedicine app here Nigeria Telemedicine App Project.
That is a screenshot of my test and its results. Again, I checked the REST API documentation, but couldnt find any passwordreset resource. I am using openmrs war 2.2.0-beta(I believe it is the latest platform edition)
@ryan97, Can you verify that there is a field activation_key on the user table and has a value after attempt in resetting a password via that endpoint?. You can check out how to run the changes for the passwordreset via email here. https://wiki.openmrs.org/pages/viewpage.action?pageId=216367317. For the part where you didn’t see the passwordreset resource, It is because there is actually none. You should instead see a passwordreset controller.
Hi @harisu, Yes there is an activation_key field in the users table and I’ve followed all the steps in the wiki page you pointed out but I still get the 404 error. The activation key field keeps having the value NULL. I have the latest openmrs war version and also the latest code for the web services module. I don’t know what I am doing wrong
@ryan97 Can you verify to make sure that you can access any other resource via the webservice that you installed, like maybe creating a person just something trivial?. You can check how to do that here https://wiki.openmrs.org/display/docs/Create+Patient Let me know if it works.
@harisu what I did was, I deleted all my servers, then created a new platform using the SDK setup command, chose the latest platform version(2.2.0-beta) and once that was set up, I made sample rest calls which were a success. But I still got the 404 error when testing with the password reset call. So I then pulled in the latest code from the rest web services module, built and deployed to my server, and that seemed to do the trick
But now, after I run the initial POST request to passwordreset, I get an internal server error. But when I check my database, the activation_key value for that particular user has been set.
@harisu I used the link you gave me, http://localhost:8080/openmrs/forgotPassword.form, still I still got the same Internal server error. I created a new user, added an email for it, and tested the passwordreset endpoint, it provided an activation key for the user which is stored in the database, but i still got the Internal Server Error