Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
Hi all,

I'm developing a C# Winforms 3.0 app for retail outlets. All the outlets will log in to a central database through a web service. Each outlet will have a superuser plus multiple ordinary users, all stored in a table in the central database. The ordinary users will have various rights assigned to them based on what screens they can view.

I have 3 requirements: to be able to turn off login, to have login with a PIN number only, and have login with username and password.

So I need to add/edit/delete users, store details of each user, what outlet they are part of, the rights to view different screens in the application based on rights assigned by the superuser, make users active/inactive, etc etc. Also need to specify the type of login on an application level i.e. none, PIN only, or full username and password.

Is there a common design pattern or any kind of template that I can use for this...maybe there's a standard code library or something pre-wriiten that I can use as a guide? Does anyone know of any good articles online relating to this scenario?


Thanks,

Ciaran.
Posted

1 solution

My most often used design pattern is the SWC pattern (Start Writing Code). It has served me well for almost 30 years.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900