19 lines
640 B
C#
19 lines
640 B
C#
namespace PrivaPub.Infrastructure
|
|||
|
|
{
|
||
|
|
public enum RegistrationMode
|
||
|
|
{
|
||
|
|
Invitations,
|
||
|
|
Open
|
||
|
|
}
|
||
|
|
|
||
|
|
// Who may make a root login. NodeInfo, both instance API versions and the sign-up endpoint read this one switch, so they
|
||
|
|
// cannot disagree. A group invitation always creates an account, whatever the mode.
|
||
|
|
public class RegistrationOptions
|
||
|
|
{
|
||
|
|
public RegistrationMode Mode { get; set; } = RegistrationMode.Invitations;//owner decision (2026-10-04): invitations only
|
||
|
|
|
||
|
|
public bool IsOpen => Mode == RegistrationMode.Open;
|
||
|
|
|
||
|
|
public const string ClosedMessage = "Sign-up is by invitation only: ask someone here for a group invitation.";
|
||
|
|
}
|
||
|
|
}
|