aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/api_auth.php4
1 files changed, 3 insertions, 1 deletions
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);