Merge branch 'fix-234' into 'development'

allow define custom logout uri

See merge request fiat-tux/hat-softwares/lufi!73
This commit is contained in:
Luc Didry 2020-12-02 17:22:03 +01:00
commit a82ad6c300
2 changed files with 9 additions and 1 deletions

View File

@ -51,7 +51,12 @@ sub log_out {
$c->logout;
}
}
$c->render(template => 'logout');
if ($c->config('logout_custom')) {
return $c->redirect_to($c->config('logout_custom'));
} else {
$c->render(template => 'logout');
}
}
1;

View File

@ -101,6 +101,9 @@
# optional, no domains allowed by default
#allowed_domains => ['http://1.example.com', 'http://2.example.com'],
# String of the URL to be redirected to when accessing /logout
#logout_custom => 'https://sso.example.com/logout?redirect_uri=https%3A%2F%2Ffiat-tux.fr',
# Define a path to the upload directory, where the uploaded files will be stored
# You can define it relative to lufi directory or set an absolute path
# Remember that it has to be in a directory writable by Lufi user