- Timestamp:
- 2019-07-23T13:45:16+12:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/collection/Collection.java
r33176 r33347 81 81 /** Stores the scope of any security rules (either collection or document) */ 82 82 protected boolean _securityScopeCollection = true; 83 protected boolean _humanVerify = false;83 protected String _humanVerify = null; 84 84 protected boolean _useRecaptcha = false; // for human verify 85 85 protected String _siteKey = null; // for recaptcha … … 340 340 341 341 String humanVerify = securityBlock.getAttribute(GSXML.VERIFY_ATT); 342 if ( humanVerify.equals("true")) {343 _humanVerify = true;342 if (!humanVerify.equals("") && !humanVerify.equals("false")) { 343 _humanVerify = humanVerify; 344 344 } 345 345 … … 519 519 response.setAttribute(GSXML.TYPE_ATT, GSXML.REQUEST_TYPE_SECURITY); 520 520 521 if (_humanVerify ) {522 response.setAttribute("humanVerify", "true");521 if (_humanVerify != null) { 522 response.setAttribute("humanVerify", _humanVerify); 523 523 if (_useRecaptcha) { 524 524 response.setAttribute("siteKey", _siteKey);
Note:
See TracChangeset
for help on using the changeset viewer.