From 39d0db52de6fa64908cb3bd2f818d01332d7eee8 Mon Sep 17 00:00:00 2001
From: Bwko <bouwko@gmail.com>
Date: Wed, 7 Dec 2016 12:21:16 +0100
Subject: [PATCH] Fix for #361, renamed username to login

---
 public/js/index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/public/js/index.js b/public/js/index.js
index b7b18187a0..2cc7790983 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -1089,7 +1089,7 @@ function searchUsers() {
                 if (response.ok && response.data.length) {
                     var html = '';
                     $.each(response.data, function (i, item) {
-                        html += '<div class="item"><img class="ui avatar image" src="' + item.avatar_url + '"><span class="username">' + item.username + '</span>';
+                        html += '<div class="item"><img class="ui avatar image" src="' + item.avatar_url + '"><span class="username">' + item.login + '</span>';
                         if (notEmpty(item.full_name)) {
                             html += ' (' + item.full_name + ')';
                         }