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

Error while finalizing registration #2

Open
Michael-RealT opened this issue Sep 25, 2024 · 0 comments
Open

Error while finalizing registration #2

Michael-RealT opened this issue Sep 25, 2024 · 0 comments

Comments

@Michael-RealT
Copy link

We encounter an error when registering a new user with Telegram.
the Bot is correctly configured, we have the possibility to connect between Flarum and Telegram, approved the connection, but when we validate the connection in the Telegram wedget and the window closes, the next step on the forum puts an error in the console
I replaced the irrelevant information with x

Uncaught TypeError: Cannot read properties of null (reading 'app')
    at telegram?id=xxx&first_name=xxx&last_name=xxx&username=xxx&photo_url=xxx&auth_date=1727255369&hash=xxx:1:39

when I click on the links of the script that generates the error I get

<script>
    window.close();
    window.opener.app.authenticationComplete({
        "username": "xxx",
        "avatar_url": "https:\/\/t.me\/i\/userpic\xxx",
        "token": "xxx",
        "provided": ["username", "avatar_url"]
    });
</script>

image

image

Flarum version:
Flarum: 1.8.5
PHP: 8.0.30
MySQL: 10.5.26-MariaDB-ubu2004
Queue driver: sync
Session driver: file

what other information could I provide to help you fix the problem?

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

No branches or pull requests

1 participant