mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 13:57:41 -08:00
Fixed erronerously removed save methods
This commit is contained in:
parent
6de6052185
commit
c5d96812f3
|
@ -185,7 +185,9 @@ class SettingsController extends Controller
|
|||
if ((!$user->isValid()) || (!$settings->isValid())) {
|
||||
return redirect()->back()->withInput()->withErrors($user->getErrors())->withErrors($settings->getErrors());
|
||||
} else {
|
||||
|
||||
$user->save();
|
||||
$settings->save();
|
||||
|
||||
if (Input::get('email_creds')=='1') {
|
||||
Mail::send(['text' => 'emails.firstadmin'], $data, function ($m) use ($data) {
|
||||
$m->to($data['email'], $data['first_name']);
|
||||
|
|
Loading…
Reference in a new issue