Commit 6dd6f4b6 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

wip(frontend): turn LDAP auth object into SQL

this is needed to access auth functions

issue #1154
parent 362d4472
......@@ -946,7 +946,6 @@ post '/request/(:name)/' => sub {
my $args = decode_json($c->req->body);
confess "Error: uid should not be provided".Dumper($args)
if exists $args->{uid};
warn Dumper($args);
my $req = Ravada::Request->new_request(
$c->stash('name')
......@@ -1293,6 +1292,7 @@ sub login {
, locale => [@languages, @languages2]
);
$auth_ok = Ravada::Auth::SQL->new(name => $auth_ok->name);
my $machines = $RAVADA->list_machines_user($auth_ok);
$url = "/machine/display/". $machines->[0]->{id_clone}.".vv" if scalar(@$machines) == 1 && $machines->[0]->{id_clone};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment