Started to create authorization portion pt.2

This commit is contained in:
2019-05-05 18:37:22 -05:00
parent 2fc646ff8b
commit 23e518d225
34 changed files with 435 additions and 27 deletions

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace BrightGlimmer.Domain.Auth
{
public class User : Entity
{
public string Username { get; private set; }
public string Email { get; private set; }
public string FirstName { get; private set; }
public string MiddleName { get; private set; }
public string LastName { get; private set; }
public string PasswordHash { get; private set; }
public bool EmailConfirmed { get; private set; }
public bool AccountLocked { get; private set; }
public int RetryAttempts { get; private set; }
}
}

View File

@@ -29,6 +29,7 @@ namespace BrightGlimmer.Domain
IsDeleted = true;
}
/* TODO: Currently not working when entities modified */
protected void MarkModified()
{
ModifiedDate = DateTime.UtcNow;

View File

@@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace BrightGlimmer.Domain
namespace BrightGlimmer.Domain.Service
{
[Table("Addresses")]
public class Address : Entity

View File

@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace BrightGlimmer.Domain
namespace BrightGlimmer.Domain.Service
{
[Table("AssignedCourses")]
public class AssignedCourse : Entity

View File

@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace BrightGlimmer.Domain
namespace BrightGlimmer.Domain.Service
{
[Table("Courses")]
public class Course : Entity

View File

@@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace BrightGlimmer.Domain
namespace BrightGlimmer.Domain.Service
{
[Table("Phones")]
public class Phone : Entity

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;
namespace BrightGlimmer.Domain
namespace BrightGlimmer.Domain.Service
{
public enum PhoneType
{

View File

@@ -5,7 +5,7 @@ using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
namespace BrightGlimmer.Domain
namespace BrightGlimmer.Domain.Service
{
[Table("Students")]
public class Student : Entity