예제 #1
0
    protected void RegisterAction_Click(object sender, EventArgs e)
    {
        Page.Validate();
        if (!Page.IsValid)
        {
            return;
        }

        ICredentialStore CredStore = this.CreateStore();

        CredStore.CreateUser(UsernameText.Text, PasswordText.Text);
        LegendStatus.Text = "User created successfully, you can log in now!";
    }