Apply fixes from StyleCI (#269)
This commit is contained in:
parent
06232b84c2
commit
b9512dccb8
1 changed files with 4 additions and 3 deletions
|
@ -29,8 +29,8 @@ use Log;
|
||||||
use Alert;
|
use Alert;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Pterodactyl\Models\User;
|
use Pterodactyl\Models\User;
|
||||||
use Pterodactyl\Repositories\UserRepository;
|
|
||||||
use Pterodactyl\Http\Controllers\Controller;
|
use Pterodactyl\Http\Controllers\Controller;
|
||||||
|
use Pterodactyl\Repositories\UserRepository;
|
||||||
use Pterodactyl\Exceptions\DisplayValidationException;
|
use Pterodactyl\Exceptions\DisplayValidationException;
|
||||||
|
|
||||||
class AccountController extends Controller
|
class AccountController extends Controller
|
||||||
|
@ -83,6 +83,7 @@ class AccountController extends Controller
|
||||||
&& ! password_verify($request->input('password'), $request->user()->password)
|
&& ! password_verify($request->input('password'), $request->user()->password)
|
||||||
) {
|
) {
|
||||||
Alert::danger(trans('base.account.invalid_pass'))->flash();
|
Alert::danger(trans('base.account.invalid_pass'))->flash();
|
||||||
|
|
||||||
return redirect()->route('account');
|
return redirect()->route('account');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue