diff options
Diffstat (limited to 'projecttemplates/WebFormsRelyingParty/Members')
3 files changed, 13 insertions, 1 deletions
diff --git a/projecttemplates/WebFormsRelyingParty/Members/AccountInfo.aspx b/projecttemplates/WebFormsRelyingParty/Members/AccountInfo.aspx index fe99b75..5ed0745 100644 --- a/projecttemplates/WebFormsRelyingParty/Members/AccountInfo.aspx +++ b/projecttemplates/WebFormsRelyingParty/Members/AccountInfo.aspx @@ -51,7 +51,8 @@ <asp:TextBox ID="emailBox" runat="server" Columns="40" ValidationGroup="Profile" /> <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="emailBox" ErrorMessage="Invalid email address" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" - ValidationGroup="Profile">invalid</asp:RegularExpressionValidator> + ValidationGroup="Profile" Text="invalid" Display="Dynamic" /> + <asp:Label runat="server" ID="emailVerifiedLabel" Text="verified" Visible="false" /> </td> </tr> <tr> diff --git a/projecttemplates/WebFormsRelyingParty/Members/AccountInfo.aspx.cs b/projecttemplates/WebFormsRelyingParty/Members/AccountInfo.aspx.cs index f1a40f7..f7d9794 100644 --- a/projecttemplates/WebFormsRelyingParty/Members/AccountInfo.aspx.cs +++ b/projecttemplates/WebFormsRelyingParty/Members/AccountInfo.aspx.cs @@ -21,6 +21,7 @@ namespace WebFormsRelyingParty.Members { if (!IsPostBack) { this.Repeater1.DataBind(); this.emailBox.Text = Global.LoggedInUser.EmailAddress; + this.emailVerifiedLabel.Visible = Global.LoggedInUser.EmailAddressVerified; this.firstNameBox.Text = Global.LoggedInUser.FirstName; this.lastNameBox.Text = Global.LoggedInUser.LastName; } @@ -48,6 +49,7 @@ namespace WebFormsRelyingParty.Members { Global.LoggedInUser.EmailAddress = this.emailBox.Text; Global.LoggedInUser.FirstName = this.firstNameBox.Text; Global.LoggedInUser.LastName = this.lastNameBox.Text; + this.emailVerifiedLabel.Visible = Global.LoggedInUser.EmailAddressVerified; } protected void InfoCardSelector1_ReceivedToken(object sender, ReceivedTokenEventArgs e) { diff --git a/projecttemplates/WebFormsRelyingParty/Members/AccountInfo.aspx.designer.cs b/projecttemplates/WebFormsRelyingParty/Members/AccountInfo.aspx.designer.cs index b7f43ce..bb08e65 100644 --- a/projecttemplates/WebFormsRelyingParty/Members/AccountInfo.aspx.designer.cs +++ b/projecttemplates/WebFormsRelyingParty/Members/AccountInfo.aspx.designer.cs @@ -68,6 +68,15 @@ namespace WebFormsRelyingParty.Members { protected global::System.Web.UI.WebControls.RegularExpressionValidator RegularExpressionValidator1; /// <summary> + /// emailVerifiedLabel control. + /// </summary> + /// <remarks> + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// </remarks> + protected global::System.Web.UI.WebControls.Label emailVerifiedLabel; + + /// <summary> /// saveChanges control. /// </summary> /// <remarks> |