membership and user creation
i wrote the following code and received the following error..
"System.Web.Security.MembershipCreateUserException : The password-answer supplied is invalid."
<code>
public ActionResult Index(Surveyor s)
{
if (ModelState.IsValid)
{
Membership.CreateUser(s.SurveyorName, s.Password);
FormsAuthentication.SetAuthCookie(s.SurveyorName, false);
return RedirectToAction("Registered");
</code>
so what is the mistake?
|