From de14e34abbb849b1df3fd6dfd8d0c050b53ebbf8 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 8 Feb 2022 15:26:52 -0700 Subject: [PATCH] - Fix 'Forgot password' could not complete due to redirect - Avoid error if no groups selected in registration configuration --- api/js/jsapi/egw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/jsapi/egw.js b/api/js/jsapi/egw.js index 8c3988c53b..94310e6c3a 100644 --- a/api/js/jsapi/egw.js +++ b/api/js/jsapi/egw.js @@ -134,7 +134,7 @@ // if framework not found, but requested to check for it, redirect to cd=yes to create it var check_framework = egw_script.getAttribute('data-check-framework'); if (typeof window.framework == 'undefined' && - !window.location.pathname.match(/\/(smallpart\/|login.php)/) && // not for login page + !window.location.pathname.match(/\/(registration\/|smallpart\/|login.php)/) && // not for login page !window.location.search.match(/[&?]cd=/) && // for popups check if required files are not about to be loaded (saved additional redirect and fixes LTI launches) (check_framework || include.filter(function(_uri){return _uri.match(/api\/(config|user)\.php/);}).length < 2))