Commit 921bc2af authored by michael.simon's avatar michael.simon
Browse files

Also check ON_HOLD registries on login mechs

parent 3dae923c
......@@ -525,6 +525,13 @@ public class UserLoginServiceImpl implements UserLoginService, Serializable {
registry = registryDao.findByServiceAndUserAndStatus(service, user, RegistryStatus.LOST_ACCESS);
}
if (registry == null) {
/*
* Also check for On_hold registries. They should also be allowed to be rechecked.
*/
registry = registryDao.findByServiceAndUserAndStatus(service, user, RegistryStatus.ON_HOLD);
}
return registry;
}
......
......@@ -243,6 +243,13 @@ public class UserUpdateServiceImpl implements UserUpdateService, Serializable {
registry = registryDao.findByServiceAndUserAndStatus(service, user, RegistryStatus.LOST_ACCESS);
}
if (registry == null) {
/*
* Also check for On_hold registries. They should also be allowed to be rechecked.
*/
registry = registryDao.findByServiceAndUserAndStatus(service, user, RegistryStatus.ON_HOLD);
}
return registry;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment