VB.net中的登录系统 [英] Login System in VB.net

查看:115
本文介绍了VB.net中的登录系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,您知道一些登录系统的强化教程吗?
我可以创建登录表单,连接到数据库,但是我的问题是我不知道如何为每个用户自动生成新帐户进行注册.我已经厌倦了为每个用户分配新表单,而且我知道那不是它应该工作的方式.

我正在使用vb Express Edition2010.:)

------
更新:
抱歉,我的第一个问题还不清楚:这是我想知道的内容:
如何使注册用户拥有自己的帐户并在登录后访问该帐户.
我有一个注册过程和一个登录表单.

Hi guys, do you know some intensive tutorial for login system?
i can create login form, connect to database, but my prob is that i dont know how to generate new account automatically for each user to register. I am tired of assigning new form for every user and i know that that is not how its supposed to work.

im working with vb express edition 2010. :)

------
UPDATE:
Im sorry, my first question is very unclear: this is what i want to know:
How to make registered users have their own account and access this after logging in.
I have a registration process, and a login form.

推荐答案

登录系统没有什么特别之处. AFAIK,也没有一个教程.

您不是要建立登录系统.您正在创建一个可在整个应用程序中使用的身份验证系统,以确定安全权限.至少您应该考虑使强制登录成为一个麻烦,否则,这有什么意义.

这样的系统由较小的组件组​​成.

首先,您必须准确定义您的登录系统应支持的内容,其要求是什么以及如何使用它.如果您不能告诉我们太多信息,那么您只是在黑暗中摸索,不会获得有用的帮助.

您需要用户能够自己创建一个新帐户吗?好的,您将创建一个注册表格,要求您提供系统的正确详细信息.用户输入这些详细信息后,该怎么办?您必须确保选择的用户名可用,对吗?好,还有另一个要求.必要时,请确保密码符合某些要求,并在整个注册设置中依此类推.完成所有操作后,您可以将帐户数据写入数据库.只是不要忘记给密码加盐并对其进行哈希处理.不要犯以纯文本格式存储密码的灾难性错误.

所有这些都是组成您的注册系统的小块.
There''s nothing special about a login system. AFAIK, there are no tutorial for one either.

You''re not making a login system. You''re making an authentication system that is used throughout your app to determine security permissions. At least you should be considering you''re going through the trouble of making logins mandatory, otherwise, what''s the point.

Systems like this are built up of smaller components.

First, you have to define exactly what your login system should support, what it''s requirements are, how it''s going to be used. If you can''t tell us this much, you''re just groping around in the dark and are not going to get help that''s going to be very useful.

You need users to be able to create a new account on their own? Ok, you create a registration form that asks for the proper details for your system. Once the user enters those details, then what? You have to make sure that the username chosen is available, correct? OK, there''s another requirement. Make sure the password meets certain requirements, if necessary, and so on with the entire registration setup. Once all that is done, you can write the account data to the database. Just don''t forget to salt the password and hash it. Don''t make the disasterous mistake of storing passwords in plain text.

All of these things are small pieces that you put together to create your registration system.


这篇关于VB.net中的登录系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆