Skip to content

Fix issue "Fingerprint2 is not defined"#4

Open
volha-pivavarchyk wants to merge 1 commit intohostnetbr:masterfrom
volha-pivavarchyk:feature/fix-fingerprint-issue
Open

Fix issue "Fingerprint2 is not defined"#4
volha-pivavarchyk wants to merge 1 commit intohostnetbr:masterfrom
volha-pivavarchyk:feature/fix-fingerprint-issue

Conversation

@volha-pivavarchyk
Copy link
Copy Markdown

Description:

I’m trytint to set it up.

There are the messages in the browser console:

  1. Uncaught ReferenceError: Fingerprint2 is not defined
    at auth.js?v527f6eba:2:1
  2. Uncaught TypeError: Cannot set properties of null (setting 'value')
    at gauth.js?v527f6eba:5:43
    at fingerprint2.min.js?v527f6eba:1:1708
    at fingerprint2.min.js?v527f6eba:1:14242

This PR suggests a solution to these issues

Steps for testing:

  1. Install the new instance of Mautic
  2. Add this plugin
  3. Open the browser console
  4. There are no errors

@YosuCadilla
Copy link
Copy Markdown

Hello @volha-pivavarchyk
Thanks for sharing your code. I tried first as is and then with your modifications with exactly the same result.

After installing the plugin and scanning the code, I get a new entry for the login in the APP.
Everything seems to work just fine, I get no errors in the Mautic log and no errors in the Apache log.
But...
When I land on the Mautic page I introduce my user and password and I get redirected to the GA form, there I fill the form and I get: "Invalid code. Please try again." That's in a typical Mautic black rectangle message box.

Any idea how can I troubleshoot?

@YosuCadilla
Copy link
Copy Markdown

This is my browser's console output:
DevTools failed to load source map: Could not load content for chrome-extension://lggdbpblkekjjbobadliahffoaobaknh/content.46295713.js.map: System error: net::ERR_BLOCKED_BY_CLIENT
DevTools failed to load source map: Could not load content for chrome-extension://lggdbpblkekjjbobadliahffoaobaknh/content.46295713.js.map: Fetch through target failed: Frame not under control of agent host; Fallback: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
2app.bundle.js:217 user already snoozed alert, do not show again
3app.bundle.js:59 refreshed cache
4app.bundle.js:217 user already snoozed alert, do not show again
DevTools failed to load source map: Could not load content for chrome-extension://lggdbpblkekjjbobadliahffoaobaknh/content.46295713.js.map: Fetch through target failed: Frame not under control of agent host; Fallback: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
2app.bundle.js:217 user already snoozed alert, do not show again

@YosuCadilla
Copy link
Copy Markdown

I've tested with both Chrome and Firefox, same result.

@YosuCadilla
Copy link
Copy Markdown

YosuCadilla commented Feb 24, 2023

image

@YosuCadilla
Copy link
Copy Markdown

YosuCadilla commented Feb 24, 2023

Funny thing, while I cannot get past the code form, not on my computer, not on my phone, not in incognito, not in Firefox, not in Chrome...
Other people have no issue at all login in to the very same Mautic instance, using Google Authenticator.

@volha-pivavarchyk
Copy link
Copy Markdown
Author

@YosuCadilla Thanks for attention for this changes. I may come back to this PR a bit later after finishing some current tasks, discribe our problem, look through your cases and share how it works for us.

@YosuCadilla
Copy link
Copy Markdown

I think the issue I was experiencing was limited to my own user account, everyone else seems to be able to use the plugin.
I suspect it is because my username has a space in it. I will try without the space and see if that fixes the issue.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants