From 2fb49521379cdaf743e3e3eb717e5df6ef39a8a3 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 25 Jul 2016 13:27:17 -0700 Subject: [PATCH] issue #460 --- include/api_auth.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/api_auth.php b/include/api_auth.php index 7a71bad73..e5cd7cab3 100644 --- a/include/api_auth.php +++ b/include/api_auth.php @@ -64,8 +64,10 @@ function api_login(&$a){ } } + + if($record['account']) { - authenticate_success($record); + authenticate_success($record['account']); if($channel_login) change_channel($channel_login);