shadowprince / uac
User accounts library for shadowprince/slimext
Requires
- php: >=5.2.0
- j4mie/paris: 1.3.0
- shadowprince/slimext: *
- slim/views: 0.1.0
This package is not auto-updated.
Last update: 2024-11-18 16:20:50 UTC
README
Uac is component for slimext. Provides user accounts features - creating, managing, authorization and more.
That component does not provide any views, just functions. Typical usage example
Cookie authorization
If there is "uac_sessid"
cookie (with session identifier), session receive from database, and if it's not expired, user is not deleted or not deactivated it becomes authorized, else session removes from database.
Uac models
User
General data - username, password-hash, status, permissions, date joined. Used for authorization, permission system.
UserProfile
UserProfile (returned by profile()
method of User) is model of class from application config ("uac.user_profile"
)for additional data like email, reputation, etc.
AuthSession
Information about user authorization sessions - each user can have unlimited count of sessions, one per cookie set.