"+data['data']+""); } else{ reason = data['reason']; $('#user_search_test_msg').html("{% translate 'Unable to authenticate user, reason: '%}" + reason + ""); } } }); //}).catch(error => displayMessage('Error while encoding file', error, 'error')); }); //}); // end of function() {% endblock %}