# Can't get portal to work - Says invalid username, but it's valid. See many screenshots

**URL:** <https://community.open-emr.org/t/cant-get-portal-to-work-says-invalid-username-but-its-valid-see-many-screenshots/21790>\
**Category:** Support\
**Tags:** portal\
**Created:** [January 6, 2024, 7:49pm UTC](https://community.open-emr.org/t/cant-get-portal-to-work-says-invalid-username-but-its-valid-see-many-screenshots/21790 "2024-01-06T19:49:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mort](https://community.open-emr.org/user_avatar/community.open-emr.org/mort/32/21705_2.png) [@Mort](https://community.open-emr.org/u/Mort)\
**Post date:** [January 6, 2024, 7:49pm UTC](https://community.open-emr.org/t/cant-get-portal-to-work-says-invalid-username-but-its-valid-see-many-screenshots/21790/1 "2024-01-06T19:49:45Z")

</div>

I setup the portal, (I’ve tried just about every checkbox on and off)

 ![2024-01-06 12_32_12-QMR's EMR - Aaron Aaronson](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/3/a/3a2583f22bc1324c26860c39090982b798a69fe5.jpeg)

and notifications as pictured, (tried different email hosts)

 ![2024-01-06 12_32_40-QMR's EMR - Aaron Aaronson](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/2/5/25075e262e09e72e54284a1d9bb6996140b99b68.jpeg)

I setup 1 fake user, Aaron A Arronson and whenever I try to login it  
says “ **Something went wrong. Please try again.** ”

 ![2024-01-06 12_36_16-Patient Portal Login](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/8/b/8b77099ca6ac091cca4aecd7da9d2b6596752a96.jpeg)

In the error logs it says: Aaron213:invalid username

In SQL It shows the username there just fine:

 ![2024-01-06 12_41_23-SERVER - VNC Viewer](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/f/0/f0653f6c31215902d36ddc31f9d8fb67f6fd3118.jpeg)

But in SQL it says there is that user.

I’ve tried resetting it many times in the user’s profile.

 ![2024-01-06 12_31_01-QMR's EMR - Aaron Aaronson](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/d/8/d83835939901874e945e8d99ca6609fb17b6f719.jpeg)

Any thoughts? Locally hosted.

**OpenEMR Version**  
7.02

**Browser** :  
I’m using: Chrome/FF/Edge

**Operating System**  
I’m using: W10

**Search**  
Did you search the forum for similar questions? Yes

**Logs**  
login attempt = Aaron213:invalid username

---

<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:** [January 6, 2024, 8:47pm UTC](https://community.open-emr.org/t/cant-get-portal-to-work-says-invalid-username-but-its-valid-see-many-screenshots/21790/2 "2024-01-06T20:47:27Z")

</div>

> [@Mort](#):
>
> login attempt = Aaron213:invalid username

You need to use the Login Username. Error shows the portal account name.

---

<div class="post-metadata">

**Author:** ![Mort](https://community.open-emr.org/user_avatar/community.open-emr.org/mort/32/21705_2.png) [@Mort](https://community.open-emr.org/u/Mort)\
**Post date:** [January 7, 2024, 1:10pm UTC](https://community.open-emr.org/t/cant-get-portal-to-work-says-invalid-username-but-its-valid-see-many-screenshots/21790/3 "2024-01-07T13:10:11Z")

</div>

Thanks for the reply! I mean it!

When I login, I get the same error message in the portal, “ **Something went wrong. Please try again.** ”

Now in the error logs it says: under login attempt:

\_\_\_\_\_\_\_\_\_gmail.com: **allow portal turned off**

In Admin \> Portal “Enable Patient Portal” is certainly checked. I unchecked it, saved. Checked it, Saved.

Seems to be turned on for patient:

 ![2024-01-07 06_08_31-QMR's EMR - Aaron Aaronson](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/4/8/48baf4cda0743b68d585956c44584af898b6d58c.jpeg)

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [January 8, 2024, 2:03pm UTC](https://community.open-emr.org/t/cant-get-portal-to-work-says-invalid-username-but-its-valid-see-many-screenshots/21790/4 "2024-01-08T14:03:53Z")

</div>

Hi @Mort, you have to enable the portal per patient by editing in Demographics-\>Choices:

 ![Screenshot from 2024-01-08 09-02-56](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/f/f/ffd94d62c5e24a15be7b6c6d7f3e66a2c0ecd31a.png) see lower right
