# GSOC 2019 : UI For Reset Password via Email Project

**URL:** <https://talk.openmrs.org/t/gsoc-2019-ui-for-reset-password-via-email-project/22064>\
**Category:** GSoC\
**Tags:** gsoc2019, gsoc\
**Created:** [March 4, 2019, 1:52am UTC](https://talk.openmrs.org/t/gsoc-2019-ui-for-reset-password-via-email-project/22064 "2019-03-04T01:52:38Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryan97](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ryan97/32/9524_2.png) [@ryan97](https://talk.openmrs.org/u/ryan97)\
**Post date:** [March 4, 2019, 1:52am UTC](https://talk.openmrs.org/t/gsoc-2019-ui-for-reset-password-via-email-project/22064/1 "2019-03-04T01:52:38Z")

</div>

Hello @harisu @madushan , my name is Tendonge Ryan, a final year computer engineering student of University of Buea, Cameroon. I have a good knowledge of Java, HTML, CSS, REST, Spring, MySQL and Angular 5 and basic knowledge of python and javascript. I was accepted for gsoc 2018 with LibreHealth( whose code base is basically a modified fork of OpenMRS core) and also i work part time with PetherSolutions, a company based in Douala, Cameroon, whose Hospital Management System is built on OpenMRS core and Reference Application, so I have an extensive knowledge of OpenMRS.

I have followed carefully the discussions on the [discussion thread for this project for the gsoc 2018 session](https://talk.openmrs.org/t/gsoc-2018-reset-password-via-email-project/18066) and I would be very much interested in carrying on with it this year. I did not find any issues for this project on OpenMRS jira, so I would like to know how to proceed from here.

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [March 4, 2019, 8:25pm UTC](https://talk.openmrs.org/t/gsoc-2019-ui-for-reset-password-via-email-project/22064/2 "2019-03-04T20:25:13Z")

</div>

Did you first of all run and test the changes which were done for the first phase during GSoC 2018?

---

<div class="post-metadata">

**Author:** ![ryan97](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ryan97/32/9524_2.png) [@ryan97](https://talk.openmrs.org/u/ryan97)\
**Post date:** [March 5, 2019, 8:21pm UTC](https://talk.openmrs.org/t/gsoc-2019-ui-for-reset-password-via-email-project/22064/3 "2019-03-05T20:21:35Z")

</div>

I did not at the time. I just went through the project discussion thread for this project for the gsoc 2018 session, and then read the final presentation thread and also watched the final presentation. But on trying to test, I did notice one thing. When creating a user, how do you attribute a an email to him? I had overlooked that when watching the video, but on trying to test, I can’t figure out how it was done.

Also, I keep getting a request 404 error even when I make the request using the username of a user that exists in my system.

 ![02%20PM](https://talk.openmrs.org/uploads/default/original/2X/f/fb33b22b89c00a53a54e2015a37c802312ce09f7.png)

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [March 5, 2019, 8:32pm UTC](https://talk.openmrs.org/t/gsoc-2019-ui-for-reset-password-via-email-project/22064/4 "2019-03-05T20:32:19Z")

</div>

Which versions of the OpenMRS Platform and REST webservices module are you running?

---

<div class="post-metadata">

**Author:** ![ryan97](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ryan97/32/9524_2.png) [@ryan97](https://talk.openmrs.org/u/ryan97)\
**Post date:** [March 6, 2019, 1:10am UTC](https://talk.openmrs.org/t/gsoc-2019-ui-for-reset-password-via-email-project/22064/5 "2019-03-06T01:10:24Z")

</div>

For REST webservices, I’m running version 2.25.0-SNAPSHOT.5baac6. And I’m running running Reference Application 2.8.1

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [March 6, 2019, 10:40am UTC](https://talk.openmrs.org/t/gsoc-2019-ui-for-reset-password-via-email-project/22064/6 "2019-03-06T10:40:37Z")

</div>

According to this TRUNK-5425 you need to upgrade your war file to platform 2.2

> [@Platform 2.2.0-beta testing.](https://talk.openmrs.org/t/platform-2-2-0-beta-testing/21871):
>
> Hi, I’m glad to announce that platform 2.2.0-beta was released in the preceding few weeks. Other members/implementations are invited to test it out and once you hit upon any bug, feel free to report it in this thread. It can be downloaded [here](https://sourceforge.net/projects/openmrs/files/prereleases/OpenMRS_Platform_2.2.0-beta/)

---

<div class="post-metadata">

**Author:** ![saurav](https://talk.openmrs.org/user_avatar/talk.openmrs.org/saurav/32/9102_2.png) [@saurav](https://talk.openmrs.org/u/saurav)\
**Post date:** [March 8, 2019, 4:28am UTC](https://talk.openmrs.org/t/gsoc-2019-ui-for-reset-password-via-email-project/22064/7 "2019-03-08T04:28:06Z")

</div>

@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

---

<div class="post-metadata">

**Author:** ![ryan97](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ryan97/32/9524_2.png) [@ryan97](https://talk.openmrs.org/u/ryan97)\
**Post date:** [March 12, 2019, 4:20am UTC](https://talk.openmrs.org/t/gsoc-2019-ui-for-reset-password-via-email-project/22064/8 "2019-03-12T04:20:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![harisu](https://talk.openmrs.org/user_avatar/talk.openmrs.org/harisu/32/7447_2.png) [@harisu](https://talk.openmrs.org/u/harisu)\
**Post date:** [March 12, 2019, 4:41am UTC](https://talk.openmrs.org/t/gsoc-2019-ui-for-reset-password-via-email-project/22064/9 "2019-03-12T04:41:46Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![harisu](https://talk.openmrs.org/user_avatar/talk.openmrs.org/harisu/32/7447_2.png) [@harisu](https://talk.openmrs.org/u/harisu)\
**Post date:** [March 12, 2019, 4:48am UTC](https://talk.openmrs.org/t/gsoc-2019-ui-for-reset-password-via-email-project/22064/10 "2019-03-12T04:48:03Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![saurav](https://talk.openmrs.org/user_avatar/talk.openmrs.org/saurav/32/9102_2.png) [@saurav](https://talk.openmrs.org/u/saurav)\
**Post date:** [March 12, 2019, 9:21am UTC](https://talk.openmrs.org/t/gsoc-2019-ui-for-reset-password-via-email-project/22064/11 "2019-03-12T09:21:39Z")

</div>

Sir I am interested in working on Nigerian Telemedicine app on this GSoc.

---

<div class="post-metadata">

**Author:** ![harisu](https://talk.openmrs.org/user_avatar/talk.openmrs.org/harisu/32/7447_2.png) [@harisu](https://talk.openmrs.org/u/harisu)\
**Post date:** [March 12, 2019, 9:27am UTC](https://talk.openmrs.org/t/gsoc-2019-ui-for-reset-password-via-email-project/22064/12 "2019-03-12T09:27:24Z")

</div>

@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](https://talk.openmrs.org/t/nigeria-telemedicine-app-project/22046).

---

<div class="post-metadata">

**Author:** ![saurav](https://talk.openmrs.org/user_avatar/talk.openmrs.org/saurav/32/9102_2.png) [@saurav](https://talk.openmrs.org/u/saurav)\
**Post date:** [March 12, 2019, 9:42am UTC](https://talk.openmrs.org/t/gsoc-2019-ui-for-reset-password-via-email-project/22064/13 "2019-03-12T09:42:20Z")

</div>

Sir actually I am interested on both the projects Nigerian telemedicine app and UI for reset password via email. @harisu fanyui

---

<div class="post-metadata">

**Author:** ![ryan97](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ryan97/32/9524_2.png) [@ryan97](https://talk.openmrs.org/u/ryan97)\
**Post date:** [March 12, 2019, 4:50pm UTC](https://talk.openmrs.org/t/gsoc-2019-ui-for-reset-password-via-email-project/22064/14 "2019-03-12T16:50:52Z")

</div>

Hi @harisu, for some reason I still keep getting the 404 error for the rest call

 ![54%20PM](https://talk.openmrs.org/uploads/default/original/2X/d/dd4590a8cbf4216459ee4ca216c1c91fa4865cc9.png)

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)

---

<div class="post-metadata">

**Author:** ![harisu](https://talk.openmrs.org/user_avatar/talk.openmrs.org/harisu/32/7447_2.png) [@harisu](https://talk.openmrs.org/u/harisu)\
**Post date:** [March 12, 2019, 6:38pm UTC](https://talk.openmrs.org/t/gsoc-2019-ui-for-reset-password-via-email-project/22064/15 "2019-03-12T18:38:45Z")

</div>

@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](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.

---

<div class="post-metadata">

**Author:** ![ryan97](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ryan97/32/9524_2.png) [@ryan97](https://talk.openmrs.org/u/ryan97)\
**Post date:** [March 14, 2019, 4:58pm UTC](https://talk.openmrs.org/t/gsoc-2019-ui-for-reset-password-via-email-project/22064/16 "2019-03-14T16:58:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![harisu](https://talk.openmrs.org/user_avatar/talk.openmrs.org/harisu/32/7447_2.png) [@harisu](https://talk.openmrs.org/u/harisu)\
**Post date:** [March 14, 2019, 5:28pm UTC](https://talk.openmrs.org/t/gsoc-2019-ui-for-reset-password-via-email-project/22064/17 "2019-03-14T17:28:41Z")

</div>

I seem not to be having issues locally Let me delete the code base I have and try to start all over to see if I can reproduce the error.

---

<div class="post-metadata">

**Author:** ![ryan97](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ryan97/32/9524_2.png) [@ryan97](https://talk.openmrs.org/u/ryan97)\
**Post date:** [March 14, 2019, 7:42pm UTC](https://talk.openmrs.org/t/gsoc-2019-ui-for-reset-password-via-email-project/22064/18 "2019-03-14T19:42:16Z")

</div>

Sounds good. You could even start by creating a new platform using the SDK, creating a new database and work from there. That should do it

---

<div class="post-metadata">

**Author:** ![harisu](https://talk.openmrs.org/user_avatar/talk.openmrs.org/harisu/32/7447_2.png) [@harisu](https://talk.openmrs.org/u/harisu)\
**Post date:** [March 15, 2019, 10:29am UTC](https://talk.openmrs.org/t/gsoc-2019-ui-for-reset-password-via-email-project/22064/19 "2019-03-15T10:29:31Z")

</div>

@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](https://wiki.openmrs.org/display/docs/Create+Patient) Let me know if it works.

---

<div class="post-metadata">

**Author:** ![ryan97](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ryan97/32/9524_2.png) [@ryan97](https://talk.openmrs.org/u/ryan97)\
**Post date:** [March 17, 2019, 3:48am UTC](https://talk.openmrs.org/t/gsoc-2019-ui-for-reset-password-via-email-project/22064/20 "2019-03-17T03:48:00Z")

</div>

@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.

 ![41%20PM](https://talk.openmrs.org/uploads/default/original/2X/7/72bb1bcc35fc406832c87423e70ad580f100d7f8.png)

That is a screenshot of the error message I got

[Next page](https://talk.openmrs.org/t/gsoc-2019-ui-for-reset-password-via-email-project/22064.md?page=2)
