Unverified Commit 74f431df authored by Francesc Guasch's avatar Francesc Guasch Committed by GitHub
Browse files

fix(frontend): pass user name in post login (#977)

issue #976
parent 53d03cf0
......@@ -91,7 +91,7 @@ our %VALID_ARG = (
,connect_node => { backend => 2, hostname => 2, id_node =>2, timeout => 2 }
#users
,post_login => { uid => 1, locale => 2 }
,post_login => { user => 1, locale => 2 }
);
......
......@@ -1234,7 +1234,7 @@ sub login {
$expiration = $SESSION_TIMEOUT_ADMIN if $auth_ok->is_admin;
Ravada::Request->post_login(
uid => $auth_ok->id
user => $auth_ok->name
, locale => [ I18N::LangTags::Detect::detect() ]
);
......
......@@ -38,7 +38,7 @@ sub test_insert_request {
my $row = $sth->fetchrow_hashref();
is($row->{name}, undef);
my $req = Ravada::Request->post_login( uid => user_admin->id, locale => ['en','ca'] );
my $req = Ravada::Request->post_login( user => user_admin->name, locale => ['en','ca'] );
rvd_back->_process_all_requests_dont_fork();
......
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