function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
BrunacciBrunacci 

New user (username field) saving problem

Hello, Experts!

 

I am new in SF and I am facing a problem I like to share

 

I have created a Force.com site and the customer Portal was customized in order to guest user have access to the site. (according chapter 14 - developer force.com)

Ok, take into account I have the developer license, when register new user using the customer portal, after the register (by completing the name, username and email address) the new user have access to the site without problems.

The thing is: the login after the new user (now registred user) show different records  (like username) from the original user register.

 

i.e. username=user5 (initial register form)

      username=user5@060a0000000paxe.na7.force.com

 

This issue unable the registred user to access the Site using the Customer Portal  

 

 

(Setup>>Administrator Setup>>Manage User>>Users) 

 


 

arunkarunk

Hi,

 

The thing is that salesforce username has to be in the form of an email address.

When u create customer portal user this rule is enforced.

But when the user registers through Sites he can provide any username, not necessarily an email address.

But the Sites logic that creates the user, automatically modifies the username to a email as shown by you.

So the user can log in from sites using his simple username that he used to register, but to log into salesforce directly he has to use the auto generated  username (in the form of email).

I guess after he registers he gets an email containing his auto generated user name to be used to log into salesforce directly. 

This is just how it is implemented.  

 

Regards,

 

Arun