Skip to content

implement in custom login, Controller, and Model. #727

@raiden909

Description

@raiden909

Hi everyone i hope all of you be healthy, So i want to make the login authentication using LDAP and the problem is creating the own model, Controller. Okay here's my own route:

Action Login / Logout

Route::post('/doLogin','AdminController@doLogin');
Route::get('/doLogout','AdminController@doLogout');
Route::get('/','AdminController@index');
Route::get('/menu','AdminController@menu');

here's my own blade:

@include('head')


webGIS
{!! Form::open(['method' => 'post', 'action' => 'AdminController@doLogin', 'class' => 'form-horizontal']) !!}
{{ $errors->first('username') }}
{{ $errors->first('password') }} {{ Session::get('message') }}
{!! Form::submit('Log In', ['class' => 'btn btn-info btn-block']) !!}
{!! Form::close() !!}
© 2016 - {{ date("Y") }} PSG
@include('foot')

the problem is i dont how to connect the ldap from .env or perhaps how to an Active Directory ldap model and the controller in laravel so i can autenticate the ldap very well. Your Assistance is really helpful

Thank you guys

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions