type

HxUserService

const mixin HxUserService : HxService

User management APIs

methods

authenticate

Authenticate a web request and return a context.

read

Lookup a user by username.

Slot Details

authenticate

abstract HxContext? authenticate(WebReq req, WebRes res)

Authenticate a web request and return a context. If request is not authenticated then redirect to login page and return null. Session information is available via HxContext.session.

read

abstract HxUser? read(Obj username, Bool checked := true)

Lookup a user by username. If not found then raise exception or return null based on the checked flag.