Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0User Registration PageUser Registration Page
Previous
 
Next
New Post
5/15/2009 6:38 AM
 

I have to change the character length allowed to enter into the User Name field to 15 chars max upon the registration. After looking around for a while I decided that I can just change maxlength value to "15" and I'll be done. The DNN on this particular install is version 4.4.1, and it's doing everything that's needed, so no upgrade necessary at the moment, just the limiting of the user name length.

I found Register.ascx under /admin/security/, there I found that it contains another control, which is under /controls/ and the file is user.ascx. It lists the max length as 175, I thought I'll try inputting 175 into the user name field on the site, it went past that, over a thousand at least and let me enter even more - first red flag! Then I did some modifications in users.ascx and uploaded - no changes are being reflected. Then I decided to just rename the file to test - no changes, renamed Register.ascx - same, no changes, everything is being displayed as if the files are still there. So if it doesn't need these two files to display what the files contain, it means it's not pulling the content from these files.

Where are the files that I am looking? I have dropped the "Account Login" module on the page that is being used to login/register, and the page has been assigned as a Login Page under Page Management in Admin/Site Settings.

Please advise where and which files should I modify to achieve the desired effect.

Thank you,

Val

 
New Post
5/18/2009 6:49 PM
 

I take nobody knows where the "real" user registration pages are, or whoever knows doesn't read this forum :(

Why would you have an "extra" user controls that get never used, just to blow up the size of installation or something. I can't make much sense out of it though.

But in the meanwhile the problem is still there...

Val

P.S. M$ has it screwed again with IE8 - tried to make this post at least five times, just comes back empty. It seems I've fallen in love with Microsoft - I spend so much time with it's programs just because I have to do everything three, four, five times over and over again...

 

 
New Post
5/18/2009 7:30 PM
 

the ascx you're looking for can be found in DesktopModules\Admin\Authentication\ (in DNN 5 at least)

 
New Post
5/18/2009 7:32 PM
 

oh, I'm sorry, I thought you were talking about account login...

that's not what you are looking for

 
New Post
5/22/2009 10:09 PM
Accepted Answer 

I don't believe this, nobody could point me the right direction :(

Here is how I solved the problem:

the file is admin/Users/manageusers.ascx.vb

I changed the Sub cmdRegister_Click to this (the lines I added are in red):


        Protected Sub cmdRegister_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdRegister.Click

            If ctlUser.IsValid And ((RequireProfile And ctlProfile.IsValid) Or (Not RequireProfile)) Then
                'Call the Create User method of the User control so that it can create
                'the user and raise the appropriate event(s)

                If ctlUser.User.Username.Length < 16 Then
                    ctlUser.CreateUser()
                Else
                    lblTitle.Text += "<div style='color:red;'>******* Username should be fifteen (15) characters or less *******</div>"
                    lblTitle.Focus()
                End If

            End If
        End Sub
 


So it turns out there are no phisical fields anywhere to be found :( -- but atleast it checks for the character count and if there is more then fifteen, it just appends the red line at the end of the title label.

I hope this is helpful to someone.

Val

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0User Registration PageUser Registration Page


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out