Database updates
This commit is contained in:
@@ -1,15 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data;
|
||||
using System.Data.Common;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using FoodsharingSiegen.Shared.Helper;
|
||||
|
||||
namespace FoodsharingSiegen.Contracts.Entity
|
||||
{
|
||||
|
||||
public partial class User
|
||||
{
|
||||
[NotMapped]
|
||||
public string Password
|
||||
{
|
||||
get => AuthHelper.Decrypt(EncryptedPassword);
|
||||
set => EncryptedPassword = AuthHelper.Encrypt(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user