Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
015ca1fcdc
2 changed files with 13 additions and 1 deletions
|
@ -135,7 +135,7 @@ class LdapAd extends LdapAdConfiguration
|
||||||
$bind_as_user = true;
|
$bind_as_user = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->ldap->auth()->attempt($login_username, $password, $bind_as_user) === false) {
|
if (($this->ldap) && ($this->ldap->auth()->attempt($login_username, $password, $bind_as_user) === false)) {
|
||||||
throw new Exception('Unable to validate user credentials!');
|
throw new Exception('Unable to validate user credentials!');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -56,6 +56,13 @@ $qr_size = ($settings->alt_barcode_enabled=='1') && ($settings->alt_barcode!='')
|
||||||
padding-top: .11in;
|
padding-top: .11in;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
div.label-logo {
|
||||||
|
float: right;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
img.label-logo {
|
||||||
|
height: 0.5in;
|
||||||
|
}
|
||||||
.qr_text {
|
.qr_text {
|
||||||
width: {{ $settings->labels_width }}in;
|
width: {{ $settings->labels_width }}in;
|
||||||
height: {{ $settings->labels_height }}in;
|
height: {{ $settings->labels_height }}in;
|
||||||
|
@ -111,6 +118,11 @@ $qr_size = ($settings->alt_barcode_enabled=='1') && ($settings->alt_barcode!='')
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="qr_text">
|
<div class="qr_text">
|
||||||
|
@if ($settings->label_logo)
|
||||||
|
<div class="label-logo">
|
||||||
|
<img class="label-logo" src="{{ Storage::disk('public')->url('').e($snipeSettings->label_logo) }}">
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
@if ($settings->qr_text!='')
|
@if ($settings->qr_text!='')
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<strong>{{ $settings->qr_text }}</strong>
|
<strong>{{ $settings->qr_text }}</strong>
|
||||||
|
|
Loading…
Add table
Reference in a new issue