More BitID work 2

This commit is contained in:
Falkvinge
2016-11-25 18:09:00 +01:00
parent c64e3a73df
commit f5ab199ade
2 changed files with 13 additions and 2 deletions
+8 -2
View File
@@ -529,7 +529,8 @@
if (response) {
var jsonData =
{
password: <%=this.MasterEditPersonCurrentPassword.ClientID%>_value()
personId: _master_PersonEditedId,
password: <%=this.MasterEditPersonCurrentPassword.ClientID%>_val()
}
SwarmopsJS.ajaxCall("/Automation/SwarmFunctions.aspx/RemoveBitId", jsonData, function(result) {
if (result.Success) {
@@ -544,6 +545,11 @@
<%= this.MasterEditPerson2FA.ClientID %>_initialize(true);
alertify.log(SwarmopsJS.unescape('<%=this.Localized_MasterPersonEdit_Cancelled2FARemoval%>'));
}
},
function response() {
// onerror
<%= this.MasterEditPerson2FA.ClientID %>_initialize(true);
alertify.error(SwarmopsJS.unescape('<%=this.Localized_GenericAjaxError%>'));
});
}
}
@@ -664,7 +670,7 @@
alertify.log(result.Success);
if (result.Success) {
_master_bitIdRecheckTimer = null;
<%=this.ModalMasterEnableBitId%>_close();
<%=this.ModalMasterEnableBitId.ClientID%>_close();
alertify.alert(result.DisplayMessage);
} else {
// not ready yet
+5
View File
@@ -496,6 +496,11 @@ namespace Swarmops.Frontend
}
public string Localized_GenericAjaxError
{
get { return CommonV5.JavascriptEscape(Resources.Global.Error_AjaxCallException); }
}
public string GenerateBitIdToken
{
get