# OpenEMR 6.0.0 portal self-registration not working

**URL:** <https://community.open-emr.org/t/openemr-6-0-0-portal-self-registration-not-working/16188>\
**Category:** Support\
**Created:** [March 3, 2021, 2:02am UTC](https://community.open-emr.org/t/openemr-6-0-0-portal-self-registration-not-working/16188 "2021-03-03T02:02:36Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![mzshen2021](https://community.open-emr.org/letter_avatar_proxy/v4/letter/m/7cd45c/32.png) [@mzshen2021](https://community.open-emr.org/u/mzshen2021)\
**Post date:** [March 3, 2021, 2:02am UTC](https://community.open-emr.org/t/openemr-6-0-0-portal-self-registration-not-working/16188/1 "2021-03-03T02:02:36Z")

</div>

**Situation**  
EMAIL ERROR: You must provide at least one recipient email address.  
no new data in the patient\_data  
new row in insurance\_data  
new row in patient\_access\_onsite

when clicking the link in email to reset password:  
Oops! Something went wrong. Please try again.

F12 console  
POST [https://hostname/openemr/portal/patient/api/patient](https://hostname/openemr/portal/patient/api/patient) 401 (Unauthorized)

**OpenEMR Version**  
I’m using OpenEMR 6.0.0

**Browser** :  
Chrome  
Firefox

**Operating System**  
Ubuntu, Windows 10

**Logs**

---

<div class="post-metadata">

**Author:** ![benmarte](https://community.open-emr.org/user_avatar/community.open-emr.org/benmarte/32/15117_2.png) [@benmarte](https://community.open-emr.org/u/benmarte)\
**Post date:** [March 3, 2021, 2:26pm UTC](https://community.open-emr.org/t/openemr-6-0-0-portal-self-registration-not-working/16188/2 "2021-03-03T14:26:51Z")

</div>

This issue has been fixed I believe it will be available with the next patch release of Open EMR

> [@Onsite Patient Portal self- registration broken in 6.0?](https://community.open-emr.org/t/onsite-patient-portal-self-registration-broken-in-6-0/15844):
>
> I don’t have any screenshots to show a silent fail… It works well enough in my 5.0.2(2) install, in that I can go through the self registration routine and since I don’t have any email sending function set up, I get the ‘cannot create credential’ error at the end, but it does create the new pt record in the EMR. In a 6.0 system I’m working on, with the globals all the same as my demo, it goes through the routine and gives the email error. And does not create the record. I don’t know if it’s …

---

<div class="post-metadata">

**Author:** ![mzshen2021](https://community.open-emr.org/letter_avatar_proxy/v4/letter/m/7cd45c/32.png) [@mzshen2021](https://community.open-emr.org/u/mzshen2021)\
**Post date:** [March 3, 2021, 5:00pm UTC](https://community.open-emr.org/t/openemr-6-0-0-portal-self-registration-not-working/16188/3 "2021-03-03T17:00:09Z")

</div>

Thank you for the reply!

I looked at the link before I posted my original question.  
In that link, someone had the same problem,  
which seemed to me the key,  
POST [https://hostname/openemr/portal/patient/api/patient](https://hostname/openemr/portal/patient/api/patient) 401 (Unauthorized)

I tried the 600 Docker on my local computer,  
also tried the Amazon 600 Docker. Both have the same problem.

May I have the patch so I can test?  
Self-registration is a key requirement for choosing OpenEMR.  
Seems 6.0.0 has other nice features that we will need.  
Most prefer to use 6 over OpenEMR 5. (Self-registration in OpenEMR 5.x works great).

---

<div class="post-metadata">

**Author:** ![benmarte](https://community.open-emr.org/user_avatar/community.open-emr.org/benmarte/32/15117_2.png) [@benmarte](https://community.open-emr.org/u/benmarte)\
**Post date:** [March 3, 2021, 7:26pm UTC](https://community.open-emr.org/t/openemr-6-0-0-portal-self-registration-not-working/16188/4 "2021-03-03T19:26:46Z")

</div>

The patched docker image has not been released yet, but the fixed code is in the master branch of the repo.

---

<div class="post-metadata">

**Author:** ![htuck](https://community.open-emr.org/user_avatar/community.open-emr.org/htuck/32/15185_2.png) [@htuck](https://community.open-emr.org/u/htuck)\
**Post date:** [March 3, 2021, 7:32pm UTC](https://community.open-emr.org/t/openemr-6-0-0-portal-self-registration-not-working/16188/5 "2021-03-03T19:32:21Z")

</div>

@mzshen2021  
I just posted a wiki page on the topic:  
[https://www.open-emr.org/wiki/index.php/HOWTO:\_Patient\_self-registration\_in\_the\_Native\_Patient\_Portal](https://www.open-emr.org/wiki/index.php/HOWTO:_Patient_self-registration_in_the_Native_Patient_Portal)

Please tell me if it’s useful or if I missed anything?  
Thanks- Harley

---

<div class="post-metadata">

**Author:** ![mzshen2021](https://community.open-emr.org/letter_avatar_proxy/v4/letter/m/7cd45c/32.png) [@mzshen2021](https://community.open-emr.org/u/mzshen2021)\
**Post date:** [March 3, 2021, 8:23pm UTC](https://community.open-emr.org/t/openemr-6-0-0-portal-self-registration-not-working/16188/6 "2021-03-03T20:23:37Z")

</div>

Thank you Harley!  
Your wiki page looks great to me!  
Where do I find the patches please?

Question:  
when a patient registers,  
say someone named Bran Stark, DOB 2018-03-19 Male,  
he should not already be in the OpenEMR system, correct?

---

<div class="post-metadata">

**Author:** ![htuck](https://community.open-emr.org/user_avatar/community.open-emr.org/htuck/32/15185_2.png) [@htuck](https://community.open-emr.org/u/htuck)\
**Post date:** [March 4, 2021, 5:37pm UTC](https://community.open-emr.org/t/openemr-6-0-0-portal-self-registration-not-working/16188/7 "2021-03-04T17:37:41Z")

</div>

Hi @mzshen2021  
Thanks for the compliment, hope the page turns out to be useful.  
I’m not a dev, but I do know they keep the posted patches for each current version here:  
[https://www.open-emr.org/wiki/index.php/OpenEMR\_Patches](https://www.open-emr.org/wiki/index.php/OpenEMR_Patches)  
That page may come in useful for you in the future.  
However, as the page says, they haven’t released any patches for v 6.0 yet.  
I am using OpenEMR v6.1.0-dev which does have the code update and can be downloaded from:  
[https://www.open-emr.org/wiki/index.php/OpenEMR\_Downloads](https://www.open-emr.org/wiki/index.php/OpenEMR_Downloads)  
Hope that helps!

- HT

---

<div class="post-metadata">

**Author:** ![htuck](https://community.open-emr.org/user_avatar/community.open-emr.org/htuck/32/15185_2.png) [@htuck](https://community.open-emr.org/u/htuck)\
**Post date:** [March 4, 2021, 6:24pm UTC](https://community.open-emr.org/t/openemr-6-0-0-portal-self-registration-not-working/16188/8 "2021-03-04T18:24:05Z")

</div>

@mzshen2021  
Re: the patient registering, that is correct: when the patient self- registers they should be a new patient, not already in the system because the self- registration creates a new patient record for them.  
However, 2 things must be remembered:

1. When registering through the portal, the system will refuse to let them register if they use the same **email address** as an existing patient.
2. When a new patient record is created in OpenEMR (not from the portal) it does a check and shows any potential duplicates. But it leaves it to the user to decide if it’s a duplicate and add it or not. I haven’t checked to see how the portal handles duplicate registrations, even if they have different emails. That might make a useful addition to the documentation, eh?

- HT

---

<div class="post-metadata">

**Author:** ![mzshen2021](https://community.open-emr.org/letter_avatar_proxy/v4/letter/m/7cd45c/32.png) [@mzshen2021](https://community.open-emr.org/u/mzshen2021)\
**Post date:** [March 4, 2021, 6:39pm UTC](https://community.open-emr.org/t/openemr-6-0-0-portal-self-registration-not-working/16188/9 "2021-03-04T18:39:33Z")

</div>

Thanks to you HT and to Benjamin Marte.  
Yes, I tried 6.1.0-dev and its self-registration function works!

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [March 4, 2021, 6:42pm UTC](https://community.open-emr.org/t/openemr-6-0-0-portal-self-registration-not-working/16188/10 "2021-03-04T18:42:30Z")

</div>

Portal checks Name, DOB, email and maybe one other i’ve forgotten. An email may have a duplicate say, family members uses the same email, in which case the email address(that becomes username) will be made unique in patient population.

---

<div class="post-metadata">

**Author:** ![htuck](https://community.open-emr.org/user_avatar/community.open-emr.org/htuck/32/15185_2.png) [@htuck](https://community.open-emr.org/u/htuck)\
**Post date:** [March 4, 2021, 6:42pm UTC](https://community.open-emr.org/t/openemr-6-0-0-portal-self-registration-not-working/16188/11 "2021-03-04T18:42:42Z")

</div>

Very good! Happy to hear it.  
Best- HT

---

<div class="post-metadata">

**Author:** ![htuck](https://community.open-emr.org/user_avatar/community.open-emr.org/htuck/32/15185_2.png) [@htuck](https://community.open-emr.org/u/htuck)\
**Post date:** [March 4, 2021, 6:45pm UTC](https://community.open-emr.org/t/openemr-6-0-0-portal-self-registration-not-working/16188/12 "2021-03-04T18:45:55Z")

</div>

Hi @sjpadgett  
So, the duplicate email will be used to send the credential but the username derived from the email will be made unique?  
V cool info, will add to docs ASAP.

- HT

---

<div class="post-metadata">

**Author:** ![benmarte](https://community.open-emr.org/user_avatar/community.open-emr.org/benmarte/32/15117_2.png) [@benmarte](https://community.open-emr.org/u/benmarte)\
**Post date:** [March 14, 2021, 4:16pm UTC](https://community.open-emr.org/t/openemr-6-0-0-portal-self-registration-not-working/16188/13 "2021-03-14T16:16:12Z")

</div>

Well after applying the latest patch I continued to run into this issue after doing some debugging the issue was the CMS Portal Login I was using was less than 12 characters so it would continue to throw this error.

I’m going to write up a bug so we can have a better error message or specify that the patient login should be 12 characters long or higher.

Is there any reason why a username and an email is needed to login to the portal? Why not just use the email as the username? It’s a very weird UX to have both in order to login IMHO.

---

<div class="post-metadata">

**Author:** ![VWfeature](https://community.open-emr.org/user_avatar/community.open-emr.org/vwfeature/32/15838_2.png) [@VWfeature](https://community.open-emr.org/u/VWfeature)\
**Post date:** [June 17, 2021, 9:28pm UTC](https://community.open-emr.org/t/openemr-6-0-0-portal-self-registration-not-working/16188/14 "2021-06-17T21:28:22Z")

</div>

Hi Ben,  
I agree, 99% of all websites use email as username.

Requiring a username and an email is probably because OpenEMR allows people to **share email for multiple patient-person accounts.**

Suggestion- since people can get no-charge emails through GMail, Mail, hotmail, etc., **I don’t see any reason not to require a unique email per account.** In the very very rare case that people had to share emails, they could add something to it, but IMO, it’s not worthwhile unless someone can point out why it’s needed.  
It automatically creates a HIPAA issue, since everyone on the account will see messages for every other user.

Too MUCH flexibility!!
