This is something I made for myself, and the effect is very good, even with an air conditioning inlet.
Let's create a robot on Telegram.
We enter your domain name in the robot settings.
We copied his nickname and tag.
Create a new authorization method in AC>System>Login and Registration>Create>Telegram.
We will record the data.
Replace the following code in the file/system/Output/Output.exe:
$this->httpHeaders['Cross-Origin-Opener-Policy'] = "same-origin";The code is as follows:
$this->httpHeaders['Cross-Origin-Opener-Policy'] = "same-origin-allow-popups";It should be noted that the Telegram authorization button can only be placed once on the page. When the user logs in https://yoursite/login/ When on the page, the button will load in two positions, so one of the positions will not load. I wrote some JS code to remove the authorization link from the header of the/login/page, so that the button will only load in the main content area of the page.
please support the developers. If you have any other questions
please leave a comment and let us know!
Recommended Comments
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.