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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...We need to ensure that the Display Name is uniqueWe need to ensure that the Display Name is unique
Previous
 
Next
New Post
4/1/2008 12:13 AM
 

We need to ensure that the display name that the user enters is unique.

The only idea I could come up with was to create a database trigger on the users table on insert to check to see if the display name is unique. If it is I raise an error:

 

('The display name you entered has already been used by someone else. Please try another display name.', 10, 1) WITH NOWAIT

This does prevent the user from registering if the display name is not unique, but the message I created in the raiserror statement is not displayed on DNN. Instead a message that is displayed is

"An Unexpected Error Occurred During Registration. Please Contact The Portal Administrator For Futher Information"

This does not help as if the user does not know what the error is he will not be able to rectify it.

Does anyone know if there is another way to make sure the display name is unique

Thanks

RAISERROR

 
New Post
4/1/2008 10:51 AM
 

you need to alter the code on the registration page.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/1/2008 3:35 PM
 

Hi Sebastian

We dont want to alter any core code. Do you perhaps know of a way to raise an error in a SQL stored proc or trigger so that it will be dislayed in DNN? That would be an easy solution and would also assist us on applying some other busines logic to the core modules.

 
New Post
4/1/2008 3:53 PM
 

you can set the displayname to [USERNAME] (in user account settings), this way the displayname will be autocalculated and always unique (since usernames are always unique


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
4/3/2008 3:23 PM
 

Hi Erik

Yes that is an option, however we need both the username and the display name and both must be unique. We do not want them to be one and the same.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...We need to ensure that the Display Name is uniqueWe need to ensure that the Display Name is unique


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