+ Start a Discussion
sales4cesales4ce 

How to by pass Username with force.com appended string data

Hi,

 

we have a Ideas like portal for our customers and Partners to exchange ideas.We are using force.com sites for this and exposing standard ideas object.

Also we have login enabled for our customer portal.we are using standard user registration page out of the box.

 

The issue is:

 

When ever users register with our site, salesforce appends the following string to username to make it unique and of type email.

"customerportalID.na6.force.com"

 

ex: assume the following user registers with our site:

 Mark Price

 

1) he enters username as MarkPrice

2) fills in all other fields and clicks register.

 

Now his username would be, MarkPrice@06080000000078a.na6.force.com.

 

If Mark Price wants to login to the site, he has to enter MarkPrice@06080000000078a.na6.force.com as his username.

It is quite tedious to remember such a username.

 

why is salesforce not enforcing any client side validations in user registration and force the user to enter a username of type email address?

 

is there any way/workaround that i can by pass this string appending to the username?

 

Any ideas are highly appreciated.

 

Thanks,

Sales4ce

 

 

 

 

 

Best Answer chosen by Admin (Salesforce Developers) 
BulentBulent

in your example Mark Price can just login using MarkPrice

He doesn't have to enter the system generated part.

All Answers

BulentBulent

in your example Mark Price can just login using MarkPrice

He doesn't have to enter the system generated part.

This was selected as the best answer
RyanGuestRyanGuest

He will still be able to login as MarkPrice (try it)

 

Workaround is to send that email to somewhere else and send your own custom email.

 

 

sales4cesales4ce

Thanks Ryan and Bulent !

Can i extend the site registration page to include my custom fields?

 

 

Thanks,

Sales4ce

RyanGuestRyanGuest

Yes, you should be able to.