Changeset 32391 for main/trunk

Show
Ignore:
Timestamp:
30.08.2018 14:43:56 (13 months ago)
Author:
kjdon
Message:

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

Files:
1 modified

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)