Ignore:
Timestamp:
2018-08-30T14:43:56+12:00 (6 years ago)
Author:
kjdon
Message:

need to make sure recaptcha key is in service if we are a failed PERFORM_ADD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/Authentication.java

    r32390 r32391  
    570570         
    571571        }
    572        
     572               
    573573        if (op.equals(PERFORM_ADD))
    574574        {
     
    580580            String newEmail = (String) paramMap.get(EMAIL);
    581581
     582            if (_recaptchaOpList != null && _recaptchaOpList.contains(ADD_USER)) {   
     583              serviceNode.setAttribute("recaptcha_key", _recaptchaSiteKey);
     584            }
    582585            //Check the given user name
    583586            int error;
     
    903906
    904907        return result; // or should we return null, as we haven't recognised the operation??
    905     }
     908        }
    906909
    907910    public int checkUsernameAndPassword(String username, String password)
Note: See TracChangeset for help on using the changeset viewer.