Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Login and Localization?
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00927908
Message ID:
00928260
Views:
26
Kevin,

Thanks, I never even thought to compare the forms from version 1.1 to version 1.2 for the changes to the login screen, that code wasn't there when i subclassed the form and overrode the Authenticate Method.

So i added the code below and works like a charm.



Thanks

Shawn

>Shawn,
>
>>After setting up my simple up on Version 1.2, I have it logging in I have added the localization tables and database elements.
>>I created a new Language Setting Called Backwards.
>>I saved it.
>>I went to my user login Id and set the default language to Backwards.
>>
>>I opened the language bar and clicked the menu item, I changed all the top menu items to backwards text.
>>
>>I logged out, I tried logging back in and expected the menu to be backwards but nothing happens.
>>
>>I click the language bar option and the bar shows up, if I change the language list element the file bar changes.
>>
>>Is there something I am missing that won't load the default language of the user?
>
>Did you download the latest version of MM .NET 1.2 after we sent the official update notice? If you have, try doing the same thing with the sample app to see if it works...I just tried it here and it worked fine.
>
>Now that I think of it (thinking out loud here <s>) didn't you create your own login form? The code that retrieves the current user's language is found in mmUserLoginForm.AuthenticateUser():
>
>
if (this.Authenticated) {
>	// User authenticated. Register with the security manager
>	mmAppBase.SecurityMgr.RegisterUser(mmAppBase.UserMgr.UserPK);
>	// If a language has been specified for the user, set it now
>	if (mmAppBase.UserMgr.CurrentLanguage != null)
>	{
>		mmAppBase.LanguageMgr.CurrentLanguage =
>			mmAppBase.UserMgr.CurrentLanguage;
>		// Set the current culture
>		mmAppBase.LanguageMgr.SetCulture(mmAppBase.UserMgr.CurrentLanguage);
>	}
>	// Call the HookUserAuthenticated method passing the user PK
>	this.HookUserAuthenticated(mmAppBase.UserMgr.UserPK);
>}
>
>Make sure this code is being executed!
>
>Regards,
Shawn Dorion
Geo Sektor Dot Com
Website: http://www.geosektor.com

Web Hosting Plans
Visit : http://WebHosting.Applications4u.com/
Previous
Reply
Map
View

Click here to load this message in the networking platform