Fixes #6190 Portal Login Redirect (#6191)
commitd4ddfd9292fcf5cb7973edfebd4dcd20f71a176d
authorStephen Nielson <snielson@discoverandchange.com>
Thu, 9 Feb 2023 19:44:08 +0000 (9 14:44 -0500)
committerGitHub <noreply@github.com>
Thu, 9 Feb 2023 19:44:08 +0000 (9 14:44 -0500)
tree2aba795dadfbec024ec1d7ffe6f9d71e02650bd4
parenta4dec51a69015551c6934f8b488e8c059718e6e2
Fixes #6190 Portal Login Redirect (#6191)

* Fixes #6190 Portal Login Redirect

This change allows the portal page to redirect to another page other
than the SPA home.php file once a user has authenticated.  In this
initial release we only allow this to go to a module page that exists in the
OpenEMR directory.  As needed we can open this up to other areas of the
application.

The redirect param is retained across password changes and the mfa auth
that is handled in the portal/index.php.

I modified the verify_sessions so that the landingpage param can be
updated so the script can be used inside of other pages we want to be
protected by the portal session (such as inside a module).

* Switch to !empty instead of isset

* Portal Login change input type text to be hidden

Change the redirect input type from text to be hidden.

* Fix the encodeUri and handle reset password

Need to pass the redirectUrl for the reset password if the recaptcha is
enabled.

Also fix the encodeUri escaping on the js.

* Fix style problems.
portal/get_patient_info.php
portal/index.php
portal/verify_session.php