Fixed ldap settings JS error
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
e9135eceb3
commit
b01e8720dc
1 changed files with 100 additions and 107 deletions
|
@ -25,13 +25,13 @@
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger">
|
||||||
It doesn't look like the LDAP extension is installed or enabled on this server. :(
|
It doesn't look like the LDAP extension is installed or enabled on this server. You can still save your settings, but you will need to enable the LDAP extension for PHP before LDAP syncing or login will work.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@else
|
@endif
|
||||||
|
|
||||||
|
|
||||||
{{ Form::open(['method' => 'POST', 'files' => false, 'autocomplete' => 'false', 'class' => 'form-horizontal', 'role' => 'form']) }}
|
{{ Form::open(['method' => 'POST', 'files' => false, 'autocomplete' => 'false', 'class' => 'form-horizontal', 'role' => 'form']) }}
|
||||||
|
@ -341,7 +341,7 @@
|
||||||
</div> <!-- /.row-->
|
</div> <!-- /.row-->
|
||||||
|
|
||||||
{{Form::close()}}
|
{{Form::close()}}
|
||||||
@endif
|
|
||||||
|
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
|
@ -395,17 +395,10 @@
|
||||||
|
|
||||||
error: function (data) {
|
error: function (data) {
|
||||||
$("#ldapad_test_results").html('');
|
$("#ldapad_test_results").html('');
|
||||||
} else if (data.status == 400) {
|
|
||||||
|
|
||||||
$("#ldapad_test_results").addClass('text-danger');
|
$("#ldapad_test_results").addClass('text-danger');
|
||||||
|
|
||||||
let errorIcon = '<i class="fa fa-exclamation-triangle text-danger"></i>' + ' ';
|
let errorIcon = '<i class="fa fa-exclamation-triangle text-danger"></i>' + ' ';
|
||||||
if (data.status == 500) {
|
if (data.status == 500) {
|
||||||
$('#ldapad_test_results').html(errorIcon + '500 Server Error');
|
$('#ldapad_test_results').html(errorIcon + '500 Server Error');
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
} else if (data.status == 400) {
|
} else if (data.status == 400) {
|
||||||
let errorMessage = '';
|
let errorMessage = '';
|
||||||
if( typeof data.responseJSON.user_sync !== 'undefined') {
|
if( typeof data.responseJSON.user_sync !== 'undefined') {
|
||||||
|
|
Loading…
Add table
Reference in a new issue