From cd5d3dbaa99211d46f59eff526e65f2104db3a33 Mon Sep 17 00:00:00 2001 From: Guillaume Rousse <guillaume.rousse@renater.fr> Date: Fri, 2 Mar 2018 12:11:32 +0100 Subject: [PATCH] use same configuration directives as the registry --- conf/manager.conf.in | 2 +- lib/AccountManager/App.pm | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/conf/manager.conf.in b/conf/manager.conf.in index 016a39f..58cd470 100644 --- a/conf/manager.conf.in +++ b/conf/manager.conf.in @@ -27,7 +27,7 @@ level = info type = mysql host = localhost name = idp_account_manager -user = idpadmin +username = idpadmin password = secret [idp] diff --git a/lib/AccountManager/App.pm b/lib/AccountManager/App.pm index d68d16a..7d6e146 100644 --- a/lib/AccountManager/App.pm +++ b/lib/AccountManager/App.pm @@ -54,11 +54,11 @@ sub new { $self->{logger} = Log::Any->get_logger(); AccountManager::DB->register_db( - driver => $self->{configuration}->{database}->{type}, - database => $self->{configuration}->{database}->{name}, - host => $self->{configuration}->{database}->{host}, - password => $self->{configuration}->{database}->{password}, - username => $self->{configuration}->{database}->{user} + driver => $self->{configuration}->{database}->{type}, + database => $self->{configuration}->{database}->{name}, + host => $self->{configuration}->{database}->{host}, + username => $self->{configuration}->{database}->{username}, + password => $self->{configuration}->{database}->{password}, ); $self->{db} = AccountManager::DB->new(); -- GitLab