mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +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
1398a7c00e
commit
de14e34abb
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user