StrataFrame Forum

What is the usage of LoginSecurityKey?

http://forum.strataframe.net/Topic20886.aspx

By Chan - 11/24/2008

Hi,

May I know how to use this?



Thank you
By Ivan George Borges - 11/25/2008

Hi Chan.

It is meant as a permission key to allow the user to login into the application. Its purpose is to work with the Restrictions set.

So, in your security project you would create a key like "MyLoginKey", and in the AppMain.vb (program.cs if the case) ShowLoginAndInitMainForm, you would set the LoginSecurityKey:

'-- Set the permission required to login to the application
Login.LoginSecurityKey = "MyLoginKey"

Then, you would apply this key to your users, set restrictions to them (Monday to Friday, work hours, for example), and deny this Permission to them outside this scope.

So, they would only be allowed to login inside those days/hours.