U4-10048 - LastLoginDate on IMember and IUser (IMembershipUser) models should be a nullable DateTime

Created by Dan Booth 22 Jun 2017, 09:36:34 Updated by Dan Booth 22 Jun 2017, 09:37:24

If you access a member or user via the ApplicationServices then it will return either a IMember or an IUser which in turn inherits from IMembershipUser.

IMembershipUser has a property called LastLoginDate which is a DateTime. I believe this should be nullable since the last login date will not exist until a member has logged in for the first time. Currently if you access this property on a member or user who has never logged in then you get back the arbitrary DateTime.MinValue (01/01/0001) which isn't what you'd expect and doesn't accurately reflect the actual value.

Comments

Priority: Normal

Type: Bug

State: Submitted

Assignee:

Difficulty: Normal

Category: Architecture

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.6.3

Due in version:

Sprint:

Story Points:

Cycle: