This commit is contained in:
ahmed committed 2026-04-03 00:32:21 +03:00
1 parent 10939f144c
commit 915a6c1088
3 files changed
+5 -5

No files matched your search

+2 -2
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;
}