Commit 8865e8c4 authored by Nigel McNie's avatar Nigel McNie
Browse files

Don't check for required profile fields on a json request, since it's very...

Don't check for required profile fields on a json request, since it's very unlikely to be able to deal with it. Saves unnecessary database queries
parent fa4684ee
...@@ -717,6 +717,12 @@ function auth_get_available_auth_types($institution=null) { ...@@ -717,6 +717,12 @@ function auth_get_available_auth_types($institution=null) {
*/ */
function auth_check_required_fields() { function auth_check_required_fields() {
global $USER; global $USER;
if (defined('JSON')) {
// Don't need to check this for json requests
return;
}
safe_require('artefact', 'internal'); safe_require('artefact', 'internal');
require_once('pieforms/pieform.php'); require_once('pieforms/pieform.php');
$elements = array(); $elements = array();
......
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