自定义ASP.NET中的登录控制 [英] Customizing the Login Control in ASP.NET

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

问题描述

我使用ASP.NET使用C#制作的图书管理系统。我在我的网站上创建自定义登录页面的一个问题。我使用ASP.NET Web配置,但我的老板犯规让我在主数据库中安装aspnet_regsql.exe的尝试。

I'm making a Library Management System using ASP.NET using C#. I have a problem creating a custom login page in my website. I've tried using the ASP.NET Web Configuration but my boss doesnt allow me to install the Aspnet_regsql.exe in the main database.

我有两个表,输入用户名和密码,另一种一个表是用​​户名状态(如果用户名被删除或不再使用)。那么,有没有替代方案或解决方法吗?

I have two tables, one table for the username and password and the other one is for the username status (in case the username is deleted or not used anymore). So is there any alternatives or workaround?

推荐答案

您可以使用一个单独的数据库为ASPNET登录的一部分。这样你的老板不担​​心.NET添加程序和表格到现有数据库。我不建议从头开始编写你自己的,因为总是创造安全漏洞,黑客可以利用后面的危险。

You could use a separate database for the aspnet login part. This way your boss doesn't have to worry about .NET adding procedures and tables to an existing database. I wouldn't recommend writing your own from scratch as there is always a danger of creating security vulnerabilities that hackers could later exploit.

这篇关于自定义ASP.NET中的登录控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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