Skip to content

v0.7.0

Choose a tag to compare

@josuebrunel josuebrunel released this 18 Jul 20:07
· 35 commits to main since this release

What's Changed

πŸš€ New Features

  • feat: add User model helper methods (#83) β€” Added 10 convenience methods to models.User:
    • Role helpers: GetRoles, AddRole, RemoveRole, HasAnyRole, HasAllRoles
    • Display helpers: FullName, DisplayName
    • Provider helpers: IsOAuth, IsLocal
    • Security helper: Sanitize
  • feat: add new User model fields (#84) β€” Added 6 new database columns:
    • last_login_at β€” track last sign-in separately from activity
    • phone / phone_verified β€” phone number and verification status
    • is_active β€” account suspension/disable (data-only, no login gate)
    • avatar_url β€” profile picture URL
    • nickname β€” common OAuth field

πŸ› Bug Fixes

  • Fixed goose version table cleanup in TestEzAuth (#82)
  • Fixed MigrateDown to reset all migrations and prevent stale goose state
  • Fixed MySQL migration β€” use VARCHAR for avatar_url (TEXT cannot have defaults)

πŸ“¦ Migration Required

Run auth.Migrate() to apply the new columns. All columns have defaults so existing rows are unaffected.