All Projects → imanghafoori1 → Laravel Anypass

imanghafoori1 / Laravel Anypass

Licence: mit
A minimal package that helps you login with any password on local environments

Labels

Projects that are alternatives of or similar to Laravel Anypass

Bulma
Bulma Frontend Preset For Laravel Framework 5.5 and Up
Stars: ✭ 177 (-3.28%)
Mutual labels:  laravel
Laravel Migrate Fresh
An artisan command to build up a database from scratch
Stars: ✭ 179 (-2.19%)
Mutual labels:  laravel
Laravel Bootstrap 4 Forms
Bootstrap 4 forms for Laravel 5/6/7/8
Stars: ✭ 181 (-1.09%)
Mutual labels:  laravel
Blade Heroicons
A package to easily make use of Heroicons in your Laravel Blade views.
Stars: ✭ 173 (-5.46%)
Mutual labels:  laravel
Laravel Identify
📦 📱 Laravel 5 Package to Detect Users Browsers, Devices, Languages and Operating Systems
Stars: ✭ 177 (-3.28%)
Mutual labels:  laravel
Laravel Exchange Rates
A Laravel wrapper package for interacting with the exchangeratesapi.io API.
Stars: ✭ 180 (-1.64%)
Mutual labels:  laravel
Php Examples For Aws Lambda
Demo serverless applications, examples code snippets and resources for PHP
Stars: ✭ 177 (-3.28%)
Mutual labels:  laravel
Efatura
eArşiv üzerinden Fatura Oluşturucu
Stars: ✭ 182 (-0.55%)
Mutual labels:  laravel
Nova Attach Many
BelongsToMany create / edit form component for Nova
Stars: ✭ 179 (-2.19%)
Mutual labels:  laravel
Skeleton
Laravel Skeleton Application
Stars: ✭ 180 (-1.64%)
Mutual labels:  laravel
Ldaprecord Laravel
Multi-domain LDAP Authentication & Management for Laravel.
Stars: ✭ 178 (-2.73%)
Mutual labels:  laravel
Platform
A @laravel based RAD platform for back-office applications, admin/user panels, and dashboards.
Stars: ✭ 2,623 (+1333.33%)
Mutual labels:  laravel
Ziggy
Use your Laravel named routes in JavaScript
Stars: ✭ 2,619 (+1331.15%)
Mutual labels:  laravel
Laravel Auth Checker
Laravel Auth Checker allows you to log users authentication, devices authenticated from and lock intrusions.
Stars: ✭ 177 (-3.28%)
Mutual labels:  laravel
Simple Sms
Send and receive SMS messages with Laravel
Stars: ✭ 181 (-1.09%)
Mutual labels:  laravel
Laravel Migration Snapshot
Simplify and accelerate applying many migrations at once using a flattened dump of the database schema and migrations
Stars: ✭ 177 (-3.28%)
Mutual labels:  laravel
Laravel Authorize
A middleware to check authorization
Stars: ✭ 179 (-2.19%)
Mutual labels:  laravel
Lumen Microservice
Lumen on Docker - Skeleton project with Nginx, MySQL & PHP 7 | Aws ECS, Google Kubernates, Azure Container Engine
Stars: ✭ 183 (+0%)
Mutual labels:  laravel
Nova Impersonate
A Laravel Nova field allows you to authenticate as your users.
Stars: ✭ 182 (-0.55%)
Mutual labels:  laravel
School Api
Laravel - MultiSchool - Admin (single)
Stars: ✭ 180 (-1.64%)
Mutual labels:  laravel

Laravel Anypass

anypass_header

Latest Stable Version Quality Score Build Status License StyleCI

Built with ❤️ for every "lazy" laravel developer ;)

It is always painful to remember and type in the correct password in the login form while you are in development...

It would be nice to be able to login with any password in local environment and only by changing the .env variables(not the application code), switch to: "real password checking".

(This means you do not need to change your application code, when you deploy your app to production while you enjoy the ease in local environments.)

Actually the behaviour of the auth()->attempt($credentials); simply changes based on the config variable in the auth.php and .env file!

Performance hit:

This package is only a few lines (about 20 lines) of code with almost no overhead.

It is also completely safe to avoid installing it on production without changing your code. Since it is a dev only dependency in your composer.json file.

  "require-dev": {
       "imanghafoori/laravel-anypass": "dev-master",
        ...
  },

Config

To avoid accidental security vulnerabilities, 3 conditions should match before you can login with any password :

in your .env file you must:

1 - APP_ENV=local  // or APP_ENV=testing
2 - APP_DEBUG=true
3 - ANY_PASS=true

That way it is very unlikely to accidentally misconfigure your app to accept any wrong password on production server.

We highly recommend to take a look to the source code.

By default, Anypass will only work if the APP_ENV is set to local or testing. You can override this by defining ANY_PASS_ENVIRONMENTS in your .env file, and setting the value to a comma-separated string of environments. For example:

ANY_PASS=true
ANY_PASS_ENVIRONMENTS="local,testing,acceptance"

💓 Note

You can not login with an invalid username or an invalid api token. Only the password checking is by-passed.

🔥 Installation

composer require --dev imanghafoori/laravel-anypass

(For laravel 5.4 and below: Instead of adding the service provider in the config/app.php file, you can add the following code to your app/Providers/AppServiceProvider.php file, within the register() method:

public function register()
{
    if ($this->app->environment() === 'local' || $this->app->environment() === 'testing') {
        $this->app->register(\Imanghafoori\AnyPass\AnyPassServiceProvider::class);
    }
    // ...
}

❗️ Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

⭐️ Your Stars Make Us Do More ⭐️

As always if you found this package useful and you want to encourage us to maintain and work on it, Please press the star button to declare your willing.

More from the author:

Laravel Terminator

💎 A minimal yet powerful package to give you opportunity to refactor your controllers.


Laravel Widgetize

💎 A minimal yet powerful package to give a better structure and caching opportunity for your laravel apps.


Laravel Master Pass

💎 A simple package that lets you easily impersonate your users.


Laravel HeyMan

💎 It allows to write exressive and defensive code whcih is decoupled from the rest of your app.


🍌 Reward me a banana 🍌

So that I will have energy to start the next package for you.

  • Dodge Coin: DJEZr6GJ4Vx37LGF3zSng711AFZzmJTouN
  • LiteCoin: ltc1q82gnjkend684c5hvprg95fnja0ktjdfrhcu4c4
  • BitCoin: bc1q53dys3jkv0h4vhl88yqhqzyujvk35x8wad7uf9
  • Ripple: rJwrb2v1TR6rAHRWwcYvNZxjDN2bYpYXhZ
  • Etherium: 0xa4898246820bbC8f677A97C2B73e6DBB9510151e

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].