admin: Fix reactivating bot users.

Because the `owner` field had the class email, we were sending the
concatination of the user and owner email addresses as the email
address in the reactivate requests.

Fixes #243.
This commit is contained in:
Tim Abbott
2015-10-28 09:40:30 -07:00
parent f6f8f1fe36
commit 5161891fbd
2 changed files with 2 additions and 2 deletions

View File

@@ -151,7 +151,7 @@ exports.setup_page = function () {
var email = $(".active_user_row").find('.email').text();
channel.post({
url: '/json/users/' + $(".active_user_row").find('.email').text() + "/reactivate",
url: '/json/users/' + email + "/reactivate",
error: function (xhr, error_type) {
if (xhr.status.toString().charAt(0) === "4") {
$(".active_user_row button").closest("td").html(

View File

@@ -8,7 +8,7 @@
</td>
{{#if is_bot}}
<td>
<span class="email">{{bot_owner}}</span>
<span class="owner">{{bot_owner}}</span>
</td>
{{/if}}
<td>