15,886,873 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Vitaly Obukhov (Top 3 by date)
Vitaly Obukhov
30-Aug-12 6:04am
View
If all persons didn't know password then pc should provide it. They just should use some common authentication scheme (basic, digest, etc…) for this and only client pc should have access to related password (token).
Basically you can use client IP as it was mentioned above. In this case IP is access token. I suppose this scheme is not very reliable since third party can spoof IP.
Vitaly Obukhov
4-Aug-11 10:42am
View
Deleted
Create form with two textboxes, labels and button. On button click create handler with something like following logic:
var credentials = new Credentials(tbxUsername.Text, tbxPassword.Text);
if (credentials.Validate())
{
//here you save user credentials to some container
}
else
{
MessageBox.Show("Some error message here");
}
This is pseudocode. I suppose main problem is that you want to store user session somehow. You should use some container. For example StructureMap. Then you just put valid credentials after authentications to container and check them whenever you want.
Vitaly Obukhov
4-Aug-11 10:34am
View
You didn't specified type of your app. Login form is mostly used in web applications. Have you any particular problems with this task? If not then just separate your athentication logic from view (form), implement authentication logic and form itself.