Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/twofactor_gateway.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2018-09-28 10:50:11 +0300
committerGitHub <noreply@github.com>2018-09-28 10:50:11 +0300
commitb1c056252e5d3c6cce3ae38e5dbfcf806c9c6b07 (patch)
tree6c57bd4db5f57d5c582c07a68434d3d421d0449f /lib/Service
parent8b6e1f59b41ad075678fe1761389345fdb754c84 (diff)
parent19f5b1e4c0e56ccc4ae68b26e1121061a10430f6 (diff)
Merge pull request #121 from nextcloud/fix/telegram-chat-id-caching
Fix caching of telegram chat id
Diffstat (limited to 'lib/Service')
-rw-r--r--lib/Service/Gateway/Telegram/Gateway.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Service/Gateway/Telegram/Gateway.php b/lib/Service/Gateway/Telegram/Gateway.php
index d8b355c..e025fa1 100644
--- a/lib/Service/Gateway/Telegram/Gateway.php
+++ b/lib/Service/Gateway/Telegram/Gateway.php
@@ -90,7 +90,7 @@ class Gateway implements IGateway {
// TODO: handle missing `/start` message and `$update` null values
$chatId = $update->message->chat->id;
- $this->config->setUserValue($user->getUID(), 'twofactor_gateway', 'chat_id', $chatId);
+ $this->config->setUserValue($user->getUID(), 'twofactor_gateway', 'telegram_chat_id', $chatId);
return (int)$chatId;
}