PhoenixKit 1.2.7: Usernames, an email blocklist and admin password changes
PhoenixKit 1.2.7 gives every user a username, adds three email tracking pages to the admin, and lets admins change a user’s password.
Usernames are unique and generated from the email address for existing users, with a number added where two would clash. The user form gets a Username field, and the users list can be searched by username. In the same form, Change User Password lets an admin set a new password for the user.
The admin menu groups Users and Email into expandable sections. Under Email sit the new metrics, queue and blocklist pages; the blocklist stores addresses that must not receive mail, with a reason and an optional expiry date. The dashboard’s Add User button now opens the new-user form.
Upgrading
Run mix phoenix_kit.update to apply migrations V08, which adds usernames and fills them in for existing users, and V09, which adds the blocklist table.
Full release notes: PhoenixKit 1.2.7
1.2.7 · 12 September 2025
Added
- Role System - Complete role-based access control
- Three system roles: Owner, Admin, User
- Many-to-many role assignments with audit trail
- First registered user automatically becomes Owner
- Admin dashboard with system statistics
- User management interface
- Admin Dashboard - Built-in dashboard at
{prefix}/admin - User Management - Complete interface at
{prefix}/admin/users
Changed
- User Registration - Integrated with role system
- Authentication Scope - Enhanced with role checks
PhoenixKit 1.2.7. Install or update: {:phoenix_kit, "~> 1.2"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.