mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
- Fix 'Forgot password' could not complete due to redirect
- Avoid error if no groups selected in registration configuration
This commit is contained in:
parent
0ba0d746da
commit
c964ccd584
@ -149,7 +149,7 @@ window.app = {classes: {}};
|
||||
// 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))
|
||||
|
Loading…
Reference in New Issue
Block a user