mirror of
https://github.com/YunoHost-Apps/calibreweb_ynh.git
synced 2024-09-03 18:16:20 +02:00
15 lines
707 B
Diff
15 lines
707 B
Diff
--- a/cps/web.py 2023-03-27 19:49:57.000000000 +0200
|
|
+++ b/cps/web.py 2023-08-05 11:58:20.353503437 +0200
|
|
@@ -1411,7 +1411,11 @@
|
|
if feature_support['oauth'] and (config.config_login_type == 2 or config.config_login_type == 3):
|
|
logout_oauth_user()
|
|
log.debug("User logged out")
|
|
- return redirect(url_for('web.login'))
|
|
+# return redirect(url_for('web.login'))
|
|
+ if config.config_login_type == constants.LOGIN_LDAP:
|
|
+ return redirect(request.host_url + '/yunohost/sso/?action=logout')
|
|
+ else:
|
|
+ return redirect(url_for('web.login'))
|
|
|
|
|
|
# ################################### Users own configuration #########################################################
|