2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2026-04-04 04:18:22 +00:00
This commit is contained in:
2026-04-03 00:32:21 +03:00
parent 10939f144c
commit 915a6c1088
3 changed files with 5 additions and 5 deletions

View File

@@ -119,10 +119,10 @@ public partial class MyService
int MyPasscode = 2025;
public PropertyContext<int> Passcode
{
get => new((sender) => sender.Session.AuthorizedAccount == "alice" ? MyPasscode : 0);
get => new((sender) => sender.Session.AuthorizedIdentity == "alice" ? MyPasscode : 0);
set
{
if (value.Connection.Session.AuthorizedAccount != "alice")
if (value.Connection.Session.AuthorizedIdentity != "alice")
throw new Exception("Only Alice is allowed.");
MyPasscode = value.Value;
}