Skip to content

💡 Authentication and user access package for the Drago project.

License

Notifications You must be signed in to change notification settings

drago-ex/project-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

102 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drago Project auth

Authentication and user access package for the Drago project.

This package provides a complete authentication layer including user login, registration, password recovery and access control. It is designed as a modular extension for projects built on top of the Drago ecosystem and Nette framework.

License: MIT PHP version Coding Style

Requirements

  • PHP >= 8.3
  • Nette Framework
  • Drago Project core packages

Features

  • User authentication (sign in / sign out)
  • User registration (sign up)
  • Password recovery and reset
  • User identity handling
  • Integration with Nette Security and DI
  • Ready-to-use backend UI components

Install

composer require drago-ex/project-auth

Adds a new user to the database

Hashes the password, generates a token, and ensures the email is unique.

php vendor/bin/create-user <username> <email> <password>

Secure access to the section

final class SecurePresenter extends Presenter
{
    use App\UI\Backend\Sign\UserRequireLogged;
}

Database migration

php vendor/bin/migration db:migrate vendor/drago-ex/project-auth/migrations

About

💡 Authentication and user access package for the Drago project.

Resources

License

Stars

Watchers

Forks

Packages

No packages published