Skip to content

Commit 612fdc9

Browse files
committed
Recaptcha provided getResponse() method
1 parent 371eff0 commit 612fdc9

File tree

1 file changed

+8
-0
lines changed
  • src/main/java/gwt/material/design/incubator/client/google/recaptcha

1 file changed

+8
-0
lines changed

src/main/java/gwt/material/design/incubator/client/google/recaptcha/ReCaptcha.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,12 @@ public void setType(RecaptchaType type) {
152152
public RecaptchaType getType() {
153153
return type;
154154
}
155+
156+
/**
157+
* Will get the response
158+
* @return
159+
*/
160+
public String getResponse() {
161+
return $this().find("#g-recaptcha-response").val().toString();
162+
}
155163
}

0 commit comments

Comments
 (0)