Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
6dd6f4b6
Commit
6dd6f4b6
authored
Oct 21, 2019
by
Francesc Guasch
Browse files
wip(frontend): turn LDAP auth object into SQL
this is needed to access auth functions issue #1154
parent
362d4472
Changes
1
Hide whitespace changes
Inline
Side-by-side
rvd_front.pl
View file @
6dd6f4b6
...
...
@@ -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
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment