v0.7.0
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
- Role helpers:
- feat: add new User model fields (#84) β Added 6 new database columns:
last_login_atβ track last sign-in separately from activityphone/phone_verifiedβ phone number and verification statusis_activeβ account suspension/disable (data-only, no login gate)avatar_urlβ profile picture URLnicknameβ common OAuth field
π Bug Fixes
- Fixed goose version table cleanup in
TestEzAuth(#82) - Fixed
MigrateDownto reset all migrations and prevent stale goose state - Fixed MySQL migration β use
VARCHARforavatar_url(TEXT cannot have defaults)
π¦ Migration Required
Run auth.Migrate() to apply the new columns. All columns have defaults so existing rows are unaffected.