AdminPanelUserType

public protocol AdminPanelUserType:
    Creatable,
    Loginable,
    Parameter,
    PasswordAuthenticatable,
    PasswordResettable,
    SessionAuthenticatable,
    Submittable,
    TemplateDataRepresentable,
    Updatable
where
    Self.Login: Decodable,
    Self.Update: Decodable,
    Self.ResolvedParameter == Future<Self>,
    Self.RequestReset: Submittable,
    Self.ResetPassword: Submittable

Undocumented

  • Undocumented

    Declaration

    Swift

    associatedtype Role : AdminPanelUserRoleType
  • Undocumented

    Declaration

    Swift

    var shouldResetPassword: Bool { get }
  • Undocumented

    Declaration

    Swift

    var role: Role? { get }
  • didCreate(on:) Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    func didCreate(on req: Request) throws -> Future<Void>
  • requireRole(_:) Extension method

    Undocumented

    Declaration

    Swift

    func requireRole(_ role: Self.Role?) throws