Commit df106047 authored by Korko's avatar Korko
Browse files

Revert to a classic recaptcha

parent 52ed6116
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -2,7 +2,3 @@ var alertify = require('alertify.js');
if(window.global.alert) {
alertify.alert(window.global.alert);
}
window.submitForm = function() {
jQuery('#randomForm .submitform').click();
};
......@@ -185,10 +185,3 @@ button .glyphicon.spinning {
display: none;
}
}
/* ==========================================================================
09. Recaptcha
========================================================================== */
.grecaptcha-badge {
z-index: 10;
}
......@@ -225,13 +225,17 @@
</div>
</fieldset>
<fieldset>
<div class="form-group btn">
{!! Recaptcha::renderElement(['data-theme' => 'light']) !!}
</div>
{{ csrf_field() }}
<button class="g-recaptcha btn btn-primary btn-lg" data-sitekey="{{ config('recaptcha.sitekey') }}" data-callback="submitForm">
<button type="submit" class="btn btn-primary btn-lg">
<span v-if="sending"><span class="glyphicon glyphicon-refresh spinning"></span> @lang('form.sending')</span>
<span v-if="sent"><span class="glyphicon glyphicon-ok"></span> @lang('form.sent')</span>
<span v-else>@lang('form.submit')</span>
</button>
<input class="submitform" type="submit" style="display:none;" />
</fieldset>
</fieldset>
</form>
......
......@@ -14,7 +14,7 @@ class RequestCase extends TestCase
{
$server = ['HTTP_X-Requested-With' => 'XMLHttpRequest'];
$response = $this->call('POST', $url, $postArgs, [], [], $server);
$this->assertEquals($code, $response->status(), $response);
$this->assertEquals($code, $response->status(), $response->getContent());
return json_decode($response->content(), true);
}
......
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