An open API service indexing awesome lists of open source software.

https://github.com/zwacky/loginchecka

Small login component that addsd a config auth driver to casually drop in yo app
https://github.com/zwacky/loginchecka

Last synced: 8 months ago
JSON representation

Small login component that addsd a config auth driver to casually drop in yo app

Awesome Lists containing this project

README

          

Loginchecka
===========

Small login component that adds a config auth driver to casually drop in yo app.

![Loginchecka login screen](http://i.imgur.com/BVpmOcc.png)

Instructions
------------
* do a `php artisan config:publish --path="vendor/zwacky/loginchecka/config" zwacky/loginchecka`
* add `'Zwacky\Loginchecka\LogincheckaServiceProvider'` to your app.php providers array
* change `'driver' => 'config'` in config/auth.php

Add or modify accounts
----------------------
Assuming you're using the config auth driver, you can modify the access accounts `config/packages/zwacky/loginchecka/config.php` under `valid_logins`.

Default the identifier to use is username. If you're using an eloquent auth driver and your logins need an email to authenticate, change `config_driver.identifier` in the loginchecka config.

Integration with Frozennode/Laravel-Administrator
-------------------------------------------------
check that `config/packages/frozennode/administrator/administrator.php` has the following changes in the config:

```php
'permission'=> function()
{
return Auth::check();
},

// the same as loginchecka::urls.login
'login_path' => 'login',
```