Make sure lock passwords isn't true before emailing
This commit is contained in:
@@ -543,7 +543,7 @@ class AssetsController extends AdminController
|
||||
$data['item_tag'] = $asset->asset_tag;
|
||||
$data['note'] = $logaction->note;
|
||||
|
||||
if (($asset->checkin_email()=='1')) {
|
||||
if ((($asset->checkin_email()=='1')) && (!Config::get('app.lock_passwords'))) {
|
||||
Mail::send('emails.checkin-asset', $data, function ($m) use ($user) {
|
||||
$m->to($user->email, $user->first_name . ' ' . $user->last_name);
|
||||
$m->subject('Confirm Asset Checkin');
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
$data['note'] = $note;
|
||||
$data['require_acceptance'] = $this->requireAcceptance();
|
||||
|
||||
if (($this->requireAcceptance()=='1') || ($this->getEula())) {
|
||||
if ((($this->requireAcceptance()=='1') || ($this->getEula())) && (!Config::get('app.lock_passwords'))) {
|
||||
|
||||
Mail::send('emails.accept-asset', $data, function ($m) use ($user) {
|
||||
$m->to($user->email, $user->first_name . ' ' . $user->last_name);
|
||||
|
||||
Reference in New Issue
Block a user