Coder Social home page Coder Social logo

aktiv8me's Introduction

Build Status

Aktiv8me

Authentication System for Laravel 5.4.* and 5.5.* with email user activation

This package adds an email verification, a.k.a. account activation feature to the built-in Laravel Authentication System. Upon registration, users will automatically recieve an email containing an activation link, which will allow to activate their registrations.

NOTE: email tests (Travis) are temporarily disabled due to some Mailthief issues.

Requirements

v1

PHP >=5.6.4

Laravel 5.4.*

v2

PHP >=7

Laravel 5.5.*

Before Installation

A clean, freshly installed Laravel is not required, but recommended.

Installation (v2 - Laravel 5.5.*)

1 - Require with composer

    composer require samkitano/aktiv8me

2 - Run aktiv8me

    php artisan make:aktiv8me

3 - Run migrations

    php artisan migrate

Done!

Installation (v1 - Laravel 5.4.*)

1 - Require with composer

    composer require samkitano/aktiv8me:1.*

2 - Add Service Provider to providers array in config/app.php

    Kitano\Aktiv8me\Aktiv8meServiceProvider::class,

3 - Run aktiv8me

    php artisan make:aktiv8me

4 - Run migrations

    php artisan migrate

Done!

After Installation

There is no need to publish any assets at all. However, it is always possible to publish config and language files by running php artisan vendor:publish

IMPORTANT: Email settings must be configured in config/mail.php to suit each project requirements!

If for some reason a reinstall is needed, running php artisan make:aktiv8me again will prompt the developer to choose either to skip, overwrite, or backup each one of the involved files. This may come in handy to reset individual files to their defaults, and to play around/test the package. Backed up files will be stored with a 3 digit numbered extension.

Notifications (email compositions) are located in app/Notifications/Aktiv8me.

Included translations:

  • (en) English
  • (es) Castellano
  • (pt) Português

NOTE: Translations are provided ONLY for this package's resources. Validation errors are NOT translated.

If not a fresh Laravel installation, the generated routes may have to be re-arranged in the routes/web.php file.

Usage

Command Action Description
php artisan make:aktiv8me Default installation Normal installation/reinstall. Files will be backed up.
php artisan make:aktiv8me --s Skip Backup files Do not backup files during installation/reinstall.
php artisan make:aktiv8me --r Remove Backed up files Not an uninstall. Removes ALL backed up files.

Configuration

The configuration file config/Aktiv8me.php contains sensible defaults, and sets up a few easy to config options:

  1. Option to disable verification, or to allow a number of tokens per registered user
  2. Option to send a welcome email after successful activation
  3. Option to set a Token expiration time
  4. Option to auto-resend a new token if the used one is expired
  5. Option to auto-login after verification

More details available in the config file itself.

Notes

All redirections are pointing to '/' or to the required Forms, when needed. Thus, if a project requires a Dashboard or an Admin section, developers will have to set up their own resources and redirections.

The default Views layouts/app.blade.php and welcome.blade.php have been modified in order to support alerts for flashed messages, just to make it easier for Devs to test the package before starting their own project workflow.

Unless otherwise specified (artisan make:aktiv8me --s), all of the original Laravel's default files will be renamed with an '.original' extension, and kept on their original directories, for convenience.

The package keeps a list of all backed up files. Running php artisan make:aktiv8me --r will remove ALL of them.

Flashed messages and JSON responses are set by the package, and they contain adequate information for most applications.

Contribution

Is always welcome, in all forms: Suggestions, Bug reports, Security issues, Pull requests, Translations, Documentation, Tests...

License

Open-sourced software licensed under the MIT license

aktiv8me's People

Contributors

samkitano avatar

Stargazers

Ralph avatar

Watchers

James Cloos avatar  avatar

Forkers

segitwo

aktiv8me's Issues

Command "make:aktiv8me" is not defined

Every time i run
php artisan make:aktiv8me
It Says:
[Symfony\Component\Console\Exception\CommandNotFoundException] Command "make:aktiv8me" is not defined.

resend routes not working!

Route::get('/aktiv8me/resend', '\App\Http\Controllers\Auth\RegisterController@resend'); Route::post('/aktiv8me/resend', '\App\Http\Controllers\Auth\RegisterController@resend')->name('register.resend');

Above resend routes are showing error.

can not install

php artisan make:aktiv8me

[ReflectionException]
Method Kitano\Aktiv8me\Console\MakeEmailVerification::handle() does not exist

No auth.resend view!

return view('auth.resend');

There is not auth.resend view available in the repo mentioned in the RegisterController.php on line
screenshot from 2017-09-30 19-38-49

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.