Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MM security tables
Message
From
18/01/2005 14:26:07
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
MM security tables
Miscellaneous
Thread ID:
00978251
Message ID:
00978251
Views:
60
Hi,

I am at the moment changing the names of the default MM security tables to AppName_mmTableName. I have inherited from the necessary security
business objects and overridden their creation methods in the factory.
The problem is that the security table Users is still being called when I try to log into the application eventhough I have made a new User class that inherits from mmUser and put the new table name in its constructor.

To replicate this problem :

1. create a new MM project
2. create a new database and use script MMSecurity.sql to create security tables 3. rename security table Users to AppUsers 4. Put new business object for table AppUsers in Business.cs. Example :

public class AppUser : mmUser
{
public AppUser()
{
this.TableName = "AppUsers";
}
}

5. Put new factory method for AppUsers business object in Factory.cs.
Example :

public override mmUser CreateUserObject()
{
return new AppUser();
}

6. Start application and try to log into as default user mm.

In my case I get an application exception with the following message :
Invalid object name 'Users'. Is there something I have missed? Do I have to override methods in the UserLoginForm to ensure that the new AppUsers table is used to authenticate users on logon?
Next
Reply
Map
View

Click here to load this message in the networking platform