- Add status checker + admin secure packages + upgrade enum + add sentry + upgrade to sitemap generator + bump to CRMV2 - Set customer role enum and user role enum - Update customer migration to set roles - phpcbf - faker local to fr - update lang - composer update - bump laravel ui - Redo all user crud - npm bump - Create admin command - rearrange views - redo all auth system - redo customer pro bo
35 lines
808 B
PHP
35 lines
808 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Fo\Auth;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Foundation\Auth\ConfirmsPasswords;
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
|
class ConfirmPasswordController extends Controller
|
|
{
|
|
use ConfirmsPasswords;
|
|
|
|
/**
|
|
* Display the password confirmation view.
|
|
*
|
|
* @return \Illuminate\View\View
|
|
*/
|
|
public function showConfirmForm()
|
|
{
|
|
if (Auth::guard('frontend')->check()) {
|
|
return \response()->redirectToRoute('home');
|
|
}
|
|
return view('fo.auth.passwords.confirm');
|
|
}
|
|
|
|
/**
|
|
* Get the post register / login redirect path.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function redirectPath()
|
|
{
|
|
return response()->redirectToRoute('fo.customer.dashboard')->getTargetUrl();
|
|
}
|
|
}
|