From 504ff085a30bd63ef5687a21c8509e23d1591f6a Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Mon, 17 Oct 2016 22:18:20 +0200 Subject: [PATCH] Work on Reset Password (incl style fix) --- Site/App_GlobalResources/Global.designer.cs | 2 +- Site/App_GlobalResources/Global.resx | 2 +- Site/Master-v5.master | 10 ++++++++-- Site/Master-v5.master.cs | 4 ++-- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Site/App_GlobalResources/Global.designer.cs b/Site/App_GlobalResources/Global.designer.cs index f96ca27d..6e4c8035 100644 --- a/Site/App_GlobalResources/Global.designer.cs +++ b/Site/App_GlobalResources/Global.designer.cs @@ -1492,7 +1492,7 @@ namespace Resources { } /// - /// Looks up a localized string similar to You're resetting a user password. This user will receive a reset link by mail, which they can click to reset their Swarmops password.<br/><br/><strong>Never do this unless specifically asked for assistance with this by the user.</strong><br/><br/>Proceed with password reset procedure?. + /// Looks up a localized string similar to You're resetting a user password. This user will receive a reset link by mail, which they can follow to reset their Swarmops password.<br/><br/><strong>Never do this unless specifically asked for assistance with this by the user.</strong><br/><br/>Proceed with password reset procedure?. /// internal static string Master_EditPersonResetPasswordConfirm_Text { get { diff --git a/Site/App_GlobalResources/Global.resx b/Site/App_GlobalResources/Global.resx index 634ca3fe..9f415979 100644 --- a/Site/App_GlobalResources/Global.resx +++ b/Site/App_GlobalResources/Global.resx @@ -763,7 +763,7 @@ Reset User Password? - You're resetting a user password. This user will receive a reset link by mail, which they can click to reset their Swarmops password.<br/><br/><strong>Never do this unless specifically asked for assistance with this by the user.</strong><br/><br/>Proceed with password reset procedure? + You're resetting a user password. This user will receive a reset link by mail, which they can follow to reset their Swarmops password.<br/><br/><strong>Never do this unless specifically asked for assistance with this by the user.</strong><br/><br/>Proceed with password reset procedure? Password Reset Prohibited diff --git a/Site/Master-v5.master b/Site/Master-v5.master index 0eae557e..967356a4 100644 --- a/Site/Master-v5.master +++ b/Site/Master-v5.master @@ -465,8 +465,14 @@ } }); - alertify.confirm('' + SwarmopsJS.unescape('<%=this.Localized_MasterPersonEditResetPasswordConfirm_Header%>') + '

' + SwarmopsJS.unescape('<%=this.Localized_MasterPersonEditResetPasswordConfirm_Text%>'), function () { alert("Ding!"); }, function () { // cancel, do nothing - }); + alertify.confirm('' + SwarmopsJS.unescape('<%=this.Localized_MasterPersonEditResetPasswordConfirm_Header%>') + '

' + SwarmopsJS.unescape('<%=this.Localized_MasterPersonEditResetPasswordConfirm_Text%>'), + function (response) { + if (response) { + alert("Success!"); + } else { + alert("Cancel"); + } + }); } diff --git a/Site/Master-v5.master.cs b/Site/Master-v5.master.cs index 2afe1bca..4cd15cbb 100644 --- a/Site/Master-v5.master.cs +++ b/Site/Master-v5.master.cs @@ -433,7 +433,7 @@ namespace Swarmops.Frontend public string Localized_MasterPersonEditResetPasswordConfirm_Header { - get { return CommonV5.JavascriptEscape(Resources.Global.Master_EditPersonResetPasswordConfirm_Header); } + get { return CommonV5.JavascriptEscape(Resources.Global.Master_EditPersonResetPasswordConfirm_Header.ToUpperInvariant()); } } public string Localized_MasterPersonEditResetPasswordConfirm_Text @@ -443,7 +443,7 @@ namespace Swarmops.Frontend public string Localized_MasterPersonEditResetPasswordProhibited_Header { - get { return CommonV5.JavascriptEscape(Resources.Global.Master_EditPersonResetPasswordProhibited_Header); } + get { return CommonV5.JavascriptEscape(Resources.Global.Master_EditPersonResetPasswordProhibited_Header.ToUpperInvariant()); } } public string Localized_MasterPersonEditResetPasswordProhibited_Text