Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Family demographic verification process URL error #5184

Closed
ChurchCRMBugReport opened this issue Mar 15, 2020 · 2 comments
Closed

Family demographic verification process URL error #5184

ChurchCRMBugReport opened this issue Mar 15, 2020 · 2 comments

Comments

@ChurchCRMBugReport
Copy link

The link that the verification process creates is missing a slash and so creates an invalid URL. So, instead of "ourdomain.com/external/verify" it has "ourdomain.comexternal/verify" and that obviously does not work.

Collected Value Title Data
Page Name /v2/index.php
Screen Size 864x1536
Window Size 762x1536
Page Size 1677x1536
Platform Information Linux gremlins.o2switch.net 3.10.0-962.3.2.lve1.5.24.8.el7.x86_64 #1 SMP Fri Jan 4 06:55:54 EST 2019 x86_64
PHP Version 7.2.28
SQL Version 10.0.38-MariaDB
ChurchCRM Version 4.0.2
Reporting Browser Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0
Prerequisite Status Missing Prerequisites: ["Mod Rewrite"]
Integrity check status {"status":"success"}
Apache Modules mod_rewrite,mod_mime,mod_headers,mod_expires,mod_auth_basic
@dleigh
Copy link

dleigh commented Mar 15, 2020

Line 98 in api/routes/people/people-family.php changing from
return $response->withJSON(["url" => SystemURLs::getURL() . "external/verify/" . $token->getToken()]);
to
return $response->withJSON(["url" => SystemURLs::getURL() . "/external/verify/" . $token->getToken()]);
fixes it.

@dleigh
Copy link

dleigh commented Mar 15, 2020

Well it fixes it for when you choose the URL from the dialog, but the URL in the email remains broken in the same way.

AND when I chose the email verification, I DO get the email (with the strange "\\\\\\\\" text) and the bad URL, but I ALSO get the following dialog error each time:

`Erreur de communication de l'API avec: /api/family/253/verify

Erreur du texte: parsererror SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants