使用vb.net对数据库进行用户名和密码验证 [英] username and password validation on database using vb.net

查看:545
本文介绍了使用vb.net对数据库进行用户名和密码验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在vb.net中创建用户名和密码的语法是什么,并将根据数据库(MSsql)中的表对其进行验证。如果密码与表中的记录匹配,则用户可以登录系统,如果没有,则。程序将结束。

解决方案

最好的方法是遵循本指南:会员资格介绍 [ ^ ]

它将添加您可能需要的其他功能并引导您完成用户ID系统。



你可以通过编写自定义成员资格提供者来扩展它[ ^ ]如果你真的想要使用你自己的数据库,但我建议你先阅读:密码存储:怎么做。 [ ^ ]

What is the syntax for making a username and password in vb.net and will validate it against the table in database (MSsql). If password match the records in the table then user can log into the system and if not,. program will end.

解决方案

The best approach is to follow this guide: Introduction to Membership[^]
It will add other features you will probably need and guide you through the user ID system.

You can extend it by writing a Custom MembershipProvider[^] if you really want to use your own DB, but then I would suggest you read this first: Password Storage: How to do it.[^]


这篇关于使用vb.net对数据库进行用户名和密码验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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