Search by

drago-ex / project-account

accgit

Account management for Drago Project.

Package info

github.com/drago-ex/project-account

Type:drago-tools-resource

pkg:composer/drago-ex/project-account

Statistics

Installs: 329

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 0

v2.1.2 2026-11-17 10:27 UTC

This package is auto-updated.

Last update: 2026-11-17 10:38:50 UTC


README

The account page of the signed-in user in Drago Project: changing the name, the email address and the password.

PHP version Coding Style

Requirements

Installation

composer require drago-ex/project-account

Project Tools copies the files of the package into the project, where you adapt them. The page has its own entry point assets/account.js; its npm dependencies (compostrap, Bootstrap Icons) are installed by npm install of the project, then build the assets again (npm run vite:build).

Usage

The page is at /account (/en/account in English). Backend UI and Front UI link it from their user menus; without them, link it in your layout:

<a n:href=":Account:">{_'Account'}</a>

The Account presenter is outside the front and backend modules, so both can link it. The page shows who is signed in (name, roles, email address) and two forms next to each other: the profile (name and email) and the password change, where a new password shows its strength while it is typed. The menu of the navbar leads to the website and to the administration (for users who may open it), switches the theme and signs out.

  • Changing the email address requires the current password; the new address applies after it is confirmed by a link, and the previous address gets a notice.
  • Wrong current passwords are limited to 5 per user in 15 minutes.
  • New passwords follow the rules of Project Auth; changing the password signs out all other sessions.

Permissions

The rules are in Account/acl.neon: the resource Account, for signed-in users.

The same file describes the privileges (permissionLabels) for the permissions page of Project Permission.