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
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,6 @@ tokens_validity_period = 2
[app]
version = open Beta 1
url = https://my.fqdn/accountmanager
support_email = support@my.fqdn
......
......@@ -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';
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment