2017 © Pedro Peláez
 

project land

Security, PIN, Email Verification

image

m7vm7v/land

Security, PIN, Email Verification

  • Monday, November 21, 2016
  • by m7vm7v
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Description

composer require m7vm7v/land:dev-master, (*1)

App\Controllers\Auth\RegisterController.php delete validator & create, change the following use m7vm7v\land\Traits\Auth\RegistersUser;, (*2)

App\Controllers\Auth\LoginController.php change the following use m7vm7v\land\Auth\AuthenticatesUsers;, (*3)

App\Http\Kernel.php protected $middlewareGroups = [ 'web' => [ \m7vm7v\land\Middleware\CheckPinIfNotActiveUser::class, \m7vm7v\land\Middleware\CheckUserFingerprint::class, \m7vm7v\land\Middleware\LoginWithPasswordAfterEmail::class, \m7vm7v\land\Middleware\LogLastUserActivity::class, ],, (*4)

User.php use m7vm7v\land\Traits\User\UserHelpers; use m7vm7v\land\Traits\User\OnlineUsers; use m7vm7v\land\Traits\User\Securable;, (*5)

Router.php public function auth() { // Authentication Routes... $this->get('login', 'Auth\LoginController@showLoginForm')->name('login'); $this->get('login/password', 'Auth\LoginController@showPasswordLoginForm'); $this->get('login/with_email/{name}/{token}', 'Auth\LoginController@authenticateEmail')->name('login.with_email'); $this->post('login', 'Auth\LoginController@resolveLogin'); $this->post('logout', 'Auth\LoginController@logout')->name('logout'); $this->get('password', 'Auth\LoginController@passwordVerification'); $this->post('password', 'Auth\LoginController@loginWithPassAfterEmail');, (*6)

    // Registration Routes...
    $this->get('register', 'Auth\RegisterController@showRegistrationForm');
    $this->post('register', 'Auth\RegisterController@register');

    // Password Reset Routes...
    $this->get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm');
    $this->post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail');
    $this->get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm');
    $this->post('password/reset', 'Auth\ResetPasswordController@reset');

    // Pin Routes
    $this->get('password/pin', '\m7vm7v\land\Controllers\PinController@getView');
    $this->post('password/pin', '\m7vm7v\land\Controllers\PinController@checkThePin');
}

The Versions

21/11 2016

dev-master

9999999-dev

Security, PIN, Email Verification

  Sources   Download

MIT

The Requires