diff --git a/conf/manager.conf.in b/conf/manager.conf.in index ac2dd918604d6601459e562bf989a2f989912423..f611a611d1f4d41f38e6e504272adce47797fd95 100644 --- a/conf/manager.conf.in +++ b/conf/manager.conf.in @@ -4,7 +4,6 @@ tokens_validity_period = 2 [app] -version = open Beta 1 url = https://my.fqdn/accountmanager support_email = support@my.fqdn diff --git a/lib/AccountManager/App.pm b/lib/AccountManager/App.pm index 17a27d29bf40324f089da0e7cc3c19b3bc413038..950aed7009ef3126c150ea88342e5519779fd5cb 100644 --- a/lib/AccountManager/App.pm +++ b/lib/AccountManager/App.pm @@ -39,6 +39,8 @@ my %actions = ( download_accounts => 'req_download_accounts', ); +my $version = '1.0'; + sub new { my ($pkg, %args) = @_; @@ -128,7 +130,7 @@ sub respond { $in{data}->{app} = { url => $self->{configuration}->{app}->{url}, support_email => $self->{configuration}->{app}->{support_email}, - version => $self->{configuration}->{app}->{version}, + version => $version, }; my $lang = HTTP::AcceptLanguage->new($ENV{HTTP_ACCEPT_LANGUAGE})->match(qw/en fr/) || 'en'; diff --git a/t/manager.conf b/t/manager.conf index d38a12984c215e667d03cc289b265f84ec063734..c1a031e1b4d89deb8487d14075edefe53529ace9 100755 --- a/t/manager.conf +++ b/t/manager.conf @@ -3,8 +3,6 @@ templates_dir = templates federation_metadata_file = t/edugain.xml [app] -version = open Beta 1 -name = eduGAIN Access Check url = https://my.fqdn/accountmanager support_email = support@my.fqdn