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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationHow to remove username field from registration?How to remove username field from registration?
Previous
 
Next
New Post
4/27/2011 2:01 PM
 
Hello everyone,

I'm looking for a way to remove the username field from the registration form. I wish to use the email address as the username. Unfortunately i haven't been successful in doing so. It seems the registration form control code isn't available in DNN4.8 and i cannot alter this control, or i'm not actually finding this code. Does anyone know if the control can be modified and where's its code files? If not i would appreciate an alternative solution for this problem if available.

Thanks in Advance.
Mazen
 
New Post
4/27/2011 3:25 PM
 
I'm pretty sure this is going to cause you to have to do some major changes in the code as the username field in the database is referenced quite often in the code (which is probably why you can't remove it from the registration field). So any changes you make would require you to recompile the code and then every time you do an upgrade (you really should upgrade from 4.8) you'd have to make those changes again and do a recompile.
I'm on my way out the door for a meeting but I'll do some digging to see if I can find it.
 
New Post
4/27/2011 3:54 PM
 
Hi Mike,

I imagine the solution to be just hiding the username label and textbox and replacing the value of the username by the email address during registration, this way no changes take place in the database. can this be done??

I thought of this solution since i have an issue of having the username as unique for all portals instead of only a single portal which may cause an issue for institutions such as universities or colleges etc using my portal... that may be using the same ID patterns. When users register they use their IDs which is in most cases being used by someone else. You see where i'm going with this, right?

Thanks Mike.
 
New Post
4/27/2011 4:24 PM
 
On the face of it that would be the easy solution but the problem is how do you get the email to be the username when it's written to the database? That's where the code changes come in and the requirement to change the core code.



What you're going to have to do is either find a registration module that does what you want (I'm sure I've seen one on snowcovered.com) or code one yourself (I had to do my one for a website a number of years ago). If you do your own then you can change the registration page in the Admin->Site Settings->Advanced Settings->Page Management to point to your registration module. Then there's no core code changes happening.
 
New Post
4/27/2011 5:04 PM
 
Well if you set the username to be the email from the first place, that means passing the email as the username for the function that adds the user to the database then it would be a piece of cake. This is my main aim, to find the control that has the registration parameter and modify the control and its code behind.
I searched all over the dnn files but couldn't find that control, is it available as a control file that can be modified or is it a control available in a library?
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationHow to remove username field from registration?How to remove username field from registration?


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