Skip to content
Snippets Groups Projects
Commit 126329a2 authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

hardcode version in code, not configuration

parent b7a21675
Branches
Tags
No related merge requests found
...@@ -4,7 +4,6 @@ tokens_validity_period = 2 ...@@ -4,7 +4,6 @@ tokens_validity_period = 2
[app] [app]
version = open Beta 1
url = https://my.fqdn/accountmanager url = https://my.fqdn/accountmanager
support_email = support@my.fqdn support_email = support@my.fqdn
......
...@@ -39,6 +39,8 @@ my %actions = ( ...@@ -39,6 +39,8 @@ my %actions = (
download_accounts => 'req_download_accounts', download_accounts => 'req_download_accounts',
); );
my $version = '1.0';
sub new { sub new {
my ($pkg, %args) = @_; my ($pkg, %args) = @_;
...@@ -128,7 +130,7 @@ sub respond { ...@@ -128,7 +130,7 @@ sub respond {
$in{data}->{app} = { $in{data}->{app} = {
url => $self->{configuration}->{app}->{url}, url => $self->{configuration}->{app}->{url},
support_email => $self->{configuration}->{app}->{support_email}, 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'; my $lang = HTTP::AcceptLanguage->new($ENV{HTTP_ACCEPT_LANGUAGE})->match(qw/en fr/) || 'en';
......
...@@ -3,8 +3,6 @@ templates_dir = templates ...@@ -3,8 +3,6 @@ templates_dir = templates
federation_metadata_file = t/edugain.xml federation_metadata_file = t/edugain.xml
[app] [app]
version = open Beta 1
name = eduGAIN Access Check
url = https://my.fqdn/accountmanager url = https://my.fqdn/accountmanager
support_email = support@my.fqdn support_email = support@my.fqdn
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment