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:
commit
a82ad6c300
|
@ -51,7 +51,12 @@ sub log_out {
|
||||||
$c->logout;
|
$c->logout;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($c->config('logout_custom')) {
|
||||||
|
return $c->redirect_to($c->config('logout_custom'));
|
||||||
|
} else {
|
||||||
$c->render(template => 'logout');
|
$c->render(template => 'logout');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
|
@ -101,6 +101,9 @@
|
||||||
# optional, no domains allowed by default
|
# optional, no domains allowed by default
|
||||||
#allowed_domains => ['http://1.example.com', 'http://2.example.com'],
|
#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
|
# 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
|
# 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
|
# Remember that it has to be in a directory writable by Lufi user
|
||||||
|
|
Loading…
Reference in New Issue