last_login

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Last Login

An xpb plugin for Pocketbase that allows for easily configured last_login fields.

Configure datetime fiels in auth collections to be automatically set on an auth request.

Installation

  1. Install XPB.
  2. Use the builder:
xpb build --with github.com/pocketbuilds/last_login@latest

Setup

  1. Create a datetime field in an auth collection.
  2. Add the field to the plugin config.
  3. Restart the pocketbase app.

Plugin Config

# pocketbuilds.toml

[last_login]
# Array of datetime fields in auth collections to
#   automatically set on auth request.
#   - format: "<collection_name>.<field_name>"
fields = [
  "my_auth_collection.last_login",
  "users.last_sign_in",
  # etc...
]

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	// Datetime fields on auth collections that will
	//   automatically set on record auth request.
	//   - format "<collection_name>.<field_name>"
	Fields []string `json:"fields"`
}

func (*Plugin) Description

func (p *Plugin) Description() string

Description implements xpb.Plugin

func (*Plugin) Init

func (p *Plugin) Init(app core.App) error

Init implements xpb.Plugin

func (*Plugin) Name

func (p *Plugin) Name() string

Name implements xpb.Plugin

func (*Plugin) Validate added in v0.0.3

func (p *Plugin) Validate() error

Validate implements validation.Validatable.

func (*Plugin) Version

func (p *Plugin) Version() string

Version implements xpb.Plugin

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址