Added debugging code to fix bitid

This commit is contained in:
Falkvinge
2016-11-25 14:47:40 +01:00
parent 0903c32738
commit fc6040a092
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -1,6 +1,8 @@
<%@ Application Language="C#" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="Swarmops.Database" %>
<%@ Import Namespace="Swarmops.Logic.Support" %>
<script runat="server">
@@ -21,6 +23,10 @@
private void Application_Error(object sender, EventArgs e)
{
Exception exc = this.Server.GetLastError();
Persistence.Key["LastUncaughtException"] = exc.ToString();
SwarmDb.GetDatabaseForWriting().CreateExceptionLogEntry (DateTime.UtcNow, "Application", exc); // TODO: Move to Logic
// Code that runs when an unhandled error occurs
}
+1 -1
View File
@@ -629,7 +629,7 @@
function onBitIdRegisterOpen() {
$('div#divBitIdEnable').empty();
$('div#divBitIdEnable').qrcode({ text: "<%=this.GenerateBitIdToken%>", size:400, quiet: 4 });
$('div#divBitIdEnable').qrcode({ text: "<%=this.GenerateBitIdToken%>", size:400, quiet: 4, ecLevel: 'L' });
$('div#divBitIdEnable + div.modal-sidebar').html(SwarmopsJS.unescape('<%=this.Localized_BitIdRegister_Sidebar%>'));
_master_bitIdRecheckTimer = setTimeout(onBitIdRegisterRecheck, 5000); // First check after 5s