Click here to Skip to main content
14,691,021 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:

I want to create a WPF application where a person can login as an admin or staff. The admin will have some rights to make changes like the admin can add a new users and update the exisiting details of a customer, user, employee.

What I have tried:

I have not tried anything yet. Just want to get some idea before I start. Thank you
Updated 3-Nov-18 0:42am

1 solution

You need to keep the login details securely in a file or database. When someone starts the application you ask for their credentials and check them against the saved information. You can then proceed according to whether they have admin rights or not. See Where should I store my data?[^] and Secure Password Authentication Explained Simply[^] for some useful information.
Ron23111 3-Nov-18 15:21pm
I am storing them in sql database
Richard MacCutchan 3-Nov-18 16:03pm
Very sensible.

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