Multiple enhancements to interactive messages, moved messages to Notifications, send netmail back when invalid packet password
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Notification;
|
||||
@@ -13,7 +13,7 @@ use Illuminate\Support\ViewErrorBag;
|
||||
|
||||
use App\Http\Requests\SystemRegister;
|
||||
use App\Models\{Address,Echoarea,Filearea,Setup,System,SystemZone,Zone};
|
||||
use App\Notifications\AddressLink;
|
||||
use App\Notifications\Netmails\AddressLink;
|
||||
use App\Rules\{FidoInteger,TwoByteInteger};
|
||||
|
||||
class SystemController extends Controller
|
||||
@@ -654,7 +654,7 @@ class SystemController extends Controller
|
||||
}
|
||||
|
||||
if ($ca->count() && $la=$ca->pop())
|
||||
Notification::route('netmail',$la)->notify(new AddressLink($la,Auth::user()));
|
||||
Notification::route('netmail',$la)->notify(new AddressLink(Auth::user()));
|
||||
|
||||
return view('user.system.register_send')
|
||||
->with('la',$la)
|
||||
@@ -682,7 +682,7 @@ class SystemController extends Controller
|
||||
|
||||
// If we have addresses, we'll trigger the routed netmail
|
||||
if ($validate->count())
|
||||
Notification::route('netmail',$x=$validate->first())->notify(new AddressLink($x,Auth::user()));
|
||||
Notification::route('netmail',$validate->first())->notify(new AddressLink(Auth::user()));
|
||||
|
||||
return view('user.system.widget.register_send')
|
||||
->with('validate',$validate)
|
||||
|
Reference in New Issue
Block a user