mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
refactor environment controller and login validation
This commit is contained in:
@ -54,7 +54,7 @@ class AccessTokensController extends Controller
|
||||
{
|
||||
$request->validate([
|
||||
'username' => 'required|email',
|
||||
'password' => 'required|string',
|
||||
'password' => 'required|string|min:8',
|
||||
]);
|
||||
|
||||
if ($this->hasTooManyLoginAttempts($request)) {
|
||||
|
||||
@ -39,8 +39,8 @@ class EnvironmentController extends Controller
|
||||
if(array_key_exists("success", $results)) {
|
||||
|
||||
Artisan::call('config:clear');
|
||||
Artisan::call('migrate --seed');
|
||||
Artisan::call('migrate', ['--path' => 'vendor/laravel/passport/database/migrations']);
|
||||
Artisan::call('migrate --seed --force');
|
||||
Artisan::call('migrate', ['--path' => 'vendor/laravel/passport/database/migrations', '--force' => true]);
|
||||
|
||||
\Storage::disk('local')->put('database_created', 'database_created');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user