Got a login
This commit is contained in:
@ -9,11 +9,11 @@ using Yavsc.Models.Bank;
|
||||
using Yavsc.Models.Access;
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public class ApplicationUser : IdentityUser, IBaseTrackedEntity
|
||||
[Table("AspNetUsers")]
|
||||
public class ApplicationUser : IdentityUser
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Another me, as a byte array.
|
||||
/// <summary>
|
||||
/// Another me, as a byte array.TG7@Eu%80rufzkhbb
|
||||
/// This value points a picture that may be used
|
||||
/// to present the user
|
||||
/// </summary>
|
||||
@ -113,24 +113,5 @@ namespace Yavsc.Models
|
||||
[InverseProperty("Member")]
|
||||
public virtual List<CircleMember> Membership { get; set; }
|
||||
|
||||
public DateTime DateCreated
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public string UserCreated
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public DateTime DateModified
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public string UserModified
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +0,0 @@
|
||||
namespace Yavsc.Server.Services
|
||||
{
|
||||
public class TranslationService
|
||||
{
|
||||
|
||||
}
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
|
||||
namespace Yavsc
|
||||
{
|
||||
public class SmtpSettings
|
||||
{
|
||||
public string Host { get; set; }
|
||||
public int Port { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public string Password { get; set; }
|
||||
public string Domain { get; set; }
|
||||
|
||||
public bool EnableSSL { get; set; }
|
||||
}
|
||||
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
namespace Yavsc
|
||||
{
|
||||
|
||||
public class ThirdPartyFiles {
|
||||
|
||||
}
|
||||
}
|
@ -10,8 +10,7 @@ namespace Yavsc.Server.Settings
|
||||
new Dictionary<string, Func<ApplicationUser, bool>>
|
||||
{
|
||||
{ "allow-monthly", u => u.AllowMonthlyEmail },
|
||||
{ "email-not-confirmed", u => !u.EmailConfirmed && u.DateCreated < DateTime.Now.AddDays(-7) },
|
||||
{ "user-to-remove", u => !u.EmailConfirmed && u.DateCreated < DateTime.Now.AddDays(-14) }
|
||||
{ "email-not-confirmed", u => !u.EmailConfirmed }
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -6,14 +6,15 @@ using Yavsc.Attributes.Validation;
|
||||
namespace Yavsc.ViewModels.Account
|
||||
{
|
||||
// TODO external autentication providers
|
||||
public class SignInViewModel
|
||||
|
||||
public class SignInModel
|
||||
{
|
||||
/// <summary>
|
||||
/// <summary>
|
||||
/// Local user's name.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[YaRequired]
|
||||
public string UserName { get; set; }
|
||||
public string EMail { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Local user's password .
|
||||
@ -46,11 +47,6 @@ namespace Yavsc.ViewModels.Account
|
||||
/// <returns></returns>
|
||||
public string ReturnUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Lists external identity provider descriptions.
|
||||
/// </summary>
|
||||
/// <returns>an enumeration of the descriptions.</returns>
|
||||
public IEnumerable<YaAuthenticationDescription> ExternalProviders { get; set; }
|
||||
}
|
||||
|
||||
public class YaAuthenticationDescription {
|
||||
|
@ -18,7 +18,5 @@ namespace Yavsc.ViewModels.Account
|
||||
[Display(Name = "Confirmer le mot de passe")]
|
||||
[Compare("Password", ErrorMessage = "Le mot de passe et sa confirmation ne sont pas les mêmes.")]
|
||||
public string ConfirmPassword { get; set; }
|
||||
|
||||
public string Code { get; set; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user