removed the resend verification in the admin panel

This commit is contained in:
AVMG20 2021-06-12 17:11:44 +02:00
parent b8f25cce87
commit c9571988a5
2 changed files with 0 additions and 15 deletions

View file

@ -142,19 +142,6 @@ class UserController extends Controller
return redirect()->route('admin.users.index');
}
/**
* @param User $user
* @return RedirectResponse
*/
public function reSendVerificationEmail(User $user)
{
if ($user->hasVerifiedEmail())
return redirect()->back()->with('error', 'User has already verified their email');
$user->sendEmailVerificationNotification();
return redirect()->back()->with('success', 'User has been emailed again!');
}
/**
*
* @throws Exception
@ -187,7 +174,6 @@ class UserController extends Controller
})
->addColumn('actions', function (User $user) {
return '
<a data-content="Resend verification" data-toggle="popover" data-trigger="hover" data-placement="top" href="' . route('admin.users.reSendVerificationEmail', $user->id) . '" class="btn btn-sm text-white btn-light mr-1"><i class="far fa-envelope"></i></a>
<a data-content="Login as user" data-toggle="popover" data-trigger="hover" data-placement="top" href="' . route('admin.users.loginas', $user->id) . '" class="btn btn-sm btn-primary mr-1"><i class="fas fa-sign-in-alt"></i></a>
<a data-content="Show" data-toggle="popover" data-trigger="hover" data-placement="top" href="' . route('admin.users.show', $user->id) . '" class="btn btn-sm text-white btn-warning mr-1"><i class="fas fa-eye"></i></a>
<a data-content="Edit" data-toggle="popover" data-trigger="hover" data-placement="top" href="' . route('admin.users.edit', $user->id) . '" class="btn btn-sm btn-info mr-1"><i class="fas fa-pen"></i></a>

View file

@ -70,7 +70,6 @@ Route::middleware('auth')->group(function () {
Route::resource('activitylogs', ActivityLogController::class);
Route::get('users/resendverificationemail/{user}', [UserController::class, 'reSendVerificationEmail'])->name('users.reSendVerificationEmail');
Route::get('users/loginas/{user}', [UserController::class, 'loginAs'])->name('users.loginas');
Route::get('users/datatable', [UserController::class, 'datatable'])->name('users.datatable');
Route::resource('users', UserController::class);