I created a new user using sites
I changed the AccountId parameter in the below class:
public class SiteRegisterController {
// PORTAL_ACCOUNT_ID is the account on which the contact will be created on and then enabled as a portal user.
// you need to add the account owner into the role hierarchy before this will work - please see Customer Portal Setup help for more information.
private static Id PORTAL_ACCOUNT_ID = '001A0000005aSYa';
public SiteRegisterController () {
}
public String username {get; set;}
public String email {get; set;}
public String password {get; set {password = value == null ? value : value.trim(); } }
public String confirmPassword {get; set { confirmPassword = value == null ? value : value.trim(); } }
public String communityNickname {get; set { communityNickname = value == null ? value : value.trim(); } }
I was able to create a test user using sites.
Note: I got a email notification from Salesforce when my authetication failed so if you try use the VF page as active page your email might speak a little more on why the authentication failed
In my mail from sfdc i had a message :
Subject : Registration error in site prathap
Body : prathap registration accountId parameter value is not valid.
Since you say that you have modified the above
accountid i would check if the profile that you are trying to assign for the user when the user record is created is added in the assign profile settings in customer portal.
Hope this would help.
Let me know if you solved this issue, if it was not because of any of the reasons discussed.
Prathap