PDA

View Full Version : سوال: روشهای تشخیص اولین ورود کاربر به سیستم



parnian man
پنج شنبه 30 شهریور 1391, 15:15 عصر
سلام
سوالم در مورد روش های تشخیص اولین ورود کاربر به سیستم هست
از کجا می شه فهمید کاربری که login کرده اولین بارشه که می خواد به سایت وارد بشه
این سوال به خاطر این است که در صورت اولین login کاربر مجبور به عوض کردن پسورد پیش فرضش بشه.
برنامه ای که در حال نوشتن هستم با asp.net و C# و با sql server 2008 هست.
ممنون :متفکر:

hamed_hossani
پنج شنبه 30 شهریور 1391, 16:24 عصر
شما می توانید ورود کاربران را در جدولی ذخیره کنید>اگر که کاربر در ان جدول نبود بار اول است!
و یا فیلدی در جدول کاربران برای تغییر پسورد برای بار اول،بگذارید!

This provider works with the following schema for the table of user data.

CREATE TABLE Users
(
PKID Guid NOT NULL PRIMARY KEY,
Username Text (255) NOT NULL,
ApplicationName Text (255) NOT NULL,
Email Text (128) NOT NULL,
Comment Text (255),
Password Text (128) NOT NULL,
PasswordQuestion Text (255),
PasswordAnswer Text (255),
IsApproved YesNo,
LastActivityDate DateTime,
LastLoginDate DateTime,
LastPasswordChangedDate DateTime,
CreationDate DateTime,
IsOnLine YesNo,
IsLockedOut YesNo,
LastLockedOutDate DateTime,
FailedPasswordAttemptCount Integer,
FailedPasswordAttemptWindowStart DateTime,
FailedPasswordAnswerAttemptCount Integer,
FailedPasswordAnswerAttemptWindowStart DateTime
http://msdn.microsoft.com/en-us/library/6tc47t75.aspx