From 51e0c4c5d5fe63b90bfd83e03838b25a9d9053f4 Mon Sep 17 00:00:00 2001 From: peppertree Date: Tue, 7 Oct 2014 21:38:20 +0200 Subject: [PATCH] Customize messages displayed on screen after registration, see https://github.com/DNN-Connect/UserAccountRegistration/issues/8 --- App_LocalResources/View.ascx.resx | 8 +++++++- View.ascx.vb | 12 +++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/App_LocalResources/View.ascx.resx b/App_LocalResources/View.ascx.resx index d0d2fc6..50b8d41 100644 --- a/App_LocalResources/View.ascx.resx +++ b/App_LocalResources/View.ascx.resx @@ -282,7 +282,7 @@ The passwords do not match! - + Your account has been created sucessfully. <a href="{0}">Proceed</a> @@ -342,4 +342,10 @@ The data you provided is not valid. Please review and try again + + Your account has been created sucessfully. We will review your registration as soon as possible and let you know if we have accepted your request. <a href="{0}">Proceed</a> + + + Your account has been created sucessfully. We have sent you an e-mail containing a verification link. You must verify your identity first by following that link from within that e-mail. <a href="{0}">Proceed</a> + \ No newline at end of file diff --git a/View.ascx.vb b/View.ascx.vb index 469674c..eb9024f 100644 --- a/View.ascx.vb +++ b/View.ascx.vb @@ -660,7 +660,17 @@ Namespace Connect.Modules.UserManagement.AccountRegistration End If - lblSucess.Text = "
  • " & String.Format(Localization.GetString("RegisterSuccess", LocalResourceFile), NavigateURL(PortalSettings.HomeTabId)) & "
" + Dim strResult As String = "" + Select Case PortalSettings.UserRegistration + Case PortalRegistrationType.PublicRegistration + strResult = String.Format(Localization.GetString("RegisterSuccess_Public", LocalResourceFile), NavigateURL(PortalSettings.HomeTabId)) + Case PortalRegistrationType.PrivateRegistration + strResult = String.Format(Localization.GetString("RegisterSuccess_Private", LocalResourceFile), NavigateURL(PortalSettings.HomeTabId)) + Case PortalRegistrationType.VerifiedRegistration + strResult = String.Format(Localization.GetString("RegisterSuccess_Verified", LocalResourceFile), NavigateURL(PortalSettings.HomeTabId)) + End Select + + lblSucess.Text = "
  • " & strResult & "
" pnlSuccess.Visible = True 'run the final interface if applicable