Bug reports Found a bug? Post it here please.
Version 6.x > Bug reports > Using email as a username does not work for some templates View modes: 
User avatar
Member
Member
lancetek - 10/23/2011 12:44:33 PM
   
Using email as a username does not work for some templates
For example when I'm using the intranet, if I go to view an employee who has an email address for a username, the control puts the username unencoded into the url like: http://intranet.lastchancemedia.com/Employees/lance@lancetek.com

Which causes an error. Since most of our users use their email address as a username, this is an issue.

We are using 5.5.4248 R2

Lance

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 10/24/2011 9:26:18 AM
   
RE:Using email as a username does not work for some templates
Hi,

it seems that you are using extensionless. Using URL of above format the system cannot decide if .com is an extension or it is a part of email.

You could change the URL and pass it as: name@surname-com
Then in a web part you can recover the original e-mail using: {%username|(replate)-|(with).%}

Above solution would work, but in case there will be an additional "-" in the e-mail it will not work correctly. You would need to use some different characters.

You can change the webpart to work with UserID instead of UserName. This way the correct user will be displayed each time.

Best regards,
Ivana Tomanickova