Is there a way to change the ValidateUser method in MVC 3? For example .. requires an additional parameter, such as an identification number or something like that? I feel this stuff is pretty static ...
Oh, and is there a way to use a different database than the existing mdf + ldf SQL database (e.g. MySQL DB)?
Edit: I still have problems setting up this stuff.
In my BOMembershipProvider class, I have
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
namespace MVCTests
{
public class BOMembershipProvider: MembershipProvider
{
public override string ApplicationName
etc. It is located in the App_Data folder. My Web.config is as follows:
<membership defaultProvider="BOMembershipProvider"> <providers> <clear/> <add name="BOMembershipProvider" type="BOMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" /> </providers>
He still gives me an error with the type of thing not found. Any hints, solutions, ...?
Oh, and I tried this with MVCTests.BOMembershipProvider in Web.config too, without any results: (
source share