login and logout with telegram

This commit is contained in:
jhuesser
2018-06-07 13:21:35 +02:00
committed by Thomas Nilsen
parent 65f6de7289
commit c96cc6e1c5
4 changed files with 72 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
require_once("config.php");
require_once("telegram.php");
try {
$auth_data = checkTelegramAuthorization($_GET);
saveTelegramUserData($auth_data);
} catch (Exception $e) {
die ($e->getMessage());
}
header('Location: index.php');
?>