├── .env.example ├── .gitattributes ├── .gitignore ├── README.md ├── app ├── Actions │ └── Fortify │ │ ├── CreateNewUser.php │ │ ├── DisableTwoFactorAuthentication.php │ │ ├── PasswordValidationRules.php │ │ ├── RedirectIfTwoFactorConfirmed.php │ │ ├── ResetUserPassword.php │ │ ├── UpdateUserPassword.php │ │ └── UpdateUserProfileInformation.php ├── Console │ └── Kernel.php ├── Exceptions │ └── Handler.php ├── Http │ ├── Controllers │ │ ├── Controller.php │ │ └── TwoFactorAuthController.php │ ├── Kernel.php │ └── Middleware │ │ ├── Authenticate.php │ │ ├── EncryptCookies.php │ │ ├── PreventRequestsDuringMaintenance.php │ │ ├── RedirectIfAuthenticated.php │ │ ├── TrimStrings.php │ │ ├── TrustHosts.php │ │ ├── TrustProxies.php │ │ └── VerifyCsrfToken.php ├── Models │ └── User.php └── Providers │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── BroadcastServiceProvider.php │ ├── EventServiceProvider.php │ ├── FortifyServiceProvider.php │ └── RouteServiceProvider.php ├── artisan ├── bootstrap ├── app.php └── cache │ └── .gitignore ├── composer.json ├── composer.lock ├── config ├── app.php ├── auth.php ├── broadcasting.php ├── cache.php ├── cors.php ├── database.php ├── filesystems.php ├── fortify.php ├── hashing.php ├── logging.php ├── mail.php ├── queue.php ├── services.php ├── session.php └── view.php ├── database ├── .gitignore └── migrations │ ├── 2014_10_12_000000_create_users_table.php │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2014_10_12_200000_add_two_factor_columns_to_users_table.php │ ├── 2019_08_19_000000_create_failed_jobs_table.php │ └── 2021_05_09_100736_add_two_factor_confirmed_column_to_users_table.php ├── public ├── .htaccess ├── favicon.ico ├── index.php ├── robots.txt └── web.config ├── resources ├── lang │ └── en │ │ ├── auth.php │ │ ├── pagination.php │ │ ├── passwords.php │ │ └── validation.php └── views │ ├── auth │ ├── login.blade.php │ ├── register.blade.php │ └── two-factor-challenge.blade.php │ ├── home.blade.php │ └── layouts │ └── app.blade.php ├── routes ├── api.php ├── channels.php ├── console.php └── web.php └── storage ├── app ├── .gitignore └── public │ └── .gitignore ├── framework ├── .gitignore ├── cache │ ├── .gitignore │ └── data │ │ └── .gitignore ├── sessions │ └── .gitignore ├── testing │ └── .gitignore └── views │ └── .gitignore └── logs └── .gitignore /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/.env.example -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/README.md -------------------------------------------------------------------------------- /app/Actions/Fortify/CreateNewUser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Actions/Fortify/CreateNewUser.php -------------------------------------------------------------------------------- /app/Actions/Fortify/DisableTwoFactorAuthentication.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Actions/Fortify/DisableTwoFactorAuthentication.php -------------------------------------------------------------------------------- /app/Actions/Fortify/PasswordValidationRules.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Actions/Fortify/PasswordValidationRules.php -------------------------------------------------------------------------------- /app/Actions/Fortify/RedirectIfTwoFactorConfirmed.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Actions/Fortify/RedirectIfTwoFactorConfirmed.php -------------------------------------------------------------------------------- /app/Actions/Fortify/ResetUserPassword.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Actions/Fortify/ResetUserPassword.php -------------------------------------------------------------------------------- /app/Actions/Fortify/UpdateUserPassword.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Actions/Fortify/UpdateUserPassword.php -------------------------------------------------------------------------------- /app/Actions/Fortify/UpdateUserProfileInformation.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Actions/Fortify/UpdateUserProfileInformation.php -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Console/Kernel.php -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Exceptions/Handler.php -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Http/Controllers/Controller.php -------------------------------------------------------------------------------- /app/Http/Controllers/TwoFactorAuthController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Http/Controllers/TwoFactorAuthController.php -------------------------------------------------------------------------------- /app/Http/Kernel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Http/Kernel.php -------------------------------------------------------------------------------- /app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Http/Middleware/Authenticate.php -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Http/Middleware/EncryptCookies.php -------------------------------------------------------------------------------- /app/Http/Middleware/PreventRequestsDuringMaintenance.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Http/Middleware/PreventRequestsDuringMaintenance.php -------------------------------------------------------------------------------- /app/Http/Middleware/RedirectIfAuthenticated.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Http/Middleware/RedirectIfAuthenticated.php -------------------------------------------------------------------------------- /app/Http/Middleware/TrimStrings.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Http/Middleware/TrimStrings.php -------------------------------------------------------------------------------- /app/Http/Middleware/TrustHosts.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Http/Middleware/TrustHosts.php -------------------------------------------------------------------------------- /app/Http/Middleware/TrustProxies.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Http/Middleware/TrustProxies.php -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Http/Middleware/VerifyCsrfToken.php -------------------------------------------------------------------------------- /app/Models/User.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Models/User.php -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Providers/AppServiceProvider.php -------------------------------------------------------------------------------- /app/Providers/AuthServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Providers/AuthServiceProvider.php -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Providers/BroadcastServiceProvider.php -------------------------------------------------------------------------------- /app/Providers/EventServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Providers/EventServiceProvider.php -------------------------------------------------------------------------------- /app/Providers/FortifyServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Providers/FortifyServiceProvider.php -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/app/Providers/RouteServiceProvider.php -------------------------------------------------------------------------------- /artisan: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/artisan -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/bootstrap/app.php -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/composer.lock -------------------------------------------------------------------------------- /config/app.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/config/app.php -------------------------------------------------------------------------------- /config/auth.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/config/auth.php -------------------------------------------------------------------------------- /config/broadcasting.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/config/broadcasting.php -------------------------------------------------------------------------------- /config/cache.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/config/cache.php -------------------------------------------------------------------------------- /config/cors.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/config/cors.php -------------------------------------------------------------------------------- /config/database.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/config/database.php -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/config/filesystems.php -------------------------------------------------------------------------------- /config/fortify.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/config/fortify.php -------------------------------------------------------------------------------- /config/hashing.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/config/hashing.php -------------------------------------------------------------------------------- /config/logging.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/config/logging.php -------------------------------------------------------------------------------- /config/mail.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/config/mail.php -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/config/queue.php -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/config/services.php -------------------------------------------------------------------------------- /config/session.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/config/session.php -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/config/view.php -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite* 2 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/database/migrations/2014_10_12_000000_create_users_table.php -------------------------------------------------------------------------------- /database/migrations/2014_10_12_100000_create_password_resets_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/database/migrations/2014_10_12_100000_create_password_resets_table.php -------------------------------------------------------------------------------- /database/migrations/2014_10_12_200000_add_two_factor_columns_to_users_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/database/migrations/2014_10_12_200000_add_two_factor_columns_to_users_table.php -------------------------------------------------------------------------------- /database/migrations/2019_08_19_000000_create_failed_jobs_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/database/migrations/2019_08_19_000000_create_failed_jobs_table.php -------------------------------------------------------------------------------- /database/migrations/2021_05_09_100736_add_two_factor_confirmed_column_to_users_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/database/migrations/2021_05_09_100736_add_two_factor_confirmed_column_to_users_table.php -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/public/.htaccess -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/public/index.php -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /public/web.config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/public/web.config -------------------------------------------------------------------------------- /resources/lang/en/auth.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/resources/lang/en/auth.php -------------------------------------------------------------------------------- /resources/lang/en/pagination.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/resources/lang/en/pagination.php -------------------------------------------------------------------------------- /resources/lang/en/passwords.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/resources/lang/en/passwords.php -------------------------------------------------------------------------------- /resources/lang/en/validation.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/resources/lang/en/validation.php -------------------------------------------------------------------------------- /resources/views/auth/login.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/resources/views/auth/login.blade.php -------------------------------------------------------------------------------- /resources/views/auth/register.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/resources/views/auth/register.blade.php -------------------------------------------------------------------------------- /resources/views/auth/two-factor-challenge.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/resources/views/auth/two-factor-challenge.blade.php -------------------------------------------------------------------------------- /resources/views/home.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/resources/views/home.blade.php -------------------------------------------------------------------------------- /resources/views/layouts/app.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/resources/views/layouts/app.blade.php -------------------------------------------------------------------------------- /routes/api.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/routes/api.php -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/routes/channels.php -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/routes/console.php -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/routes/web.php -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicolus/laravel-2fa/HEAD/storage/framework/.gitignore -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | --------------------------------------------------------------------------------