Files
FoodsharingOnboarding/FoodsharingSiegen.Contracts/Entity/User.cs
2022-04-04 15:15:03 +02:00

24 lines
554 B
C#

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);
}
}
}