login with captcha

This commit is contained in:
wcharles 2019-10-09 16:36:18 +08:00
parent 865579f8d2
commit b79aeace36
2 changed files with 4 additions and 2 deletions

View File

@ -50,8 +50,10 @@
</body>
</html>
<script>
$(function(){
$('#id_captcha_1').addClass('form-control');
})
$('.captcha').click(function () {
$.getJSON("/groups/refresh_captcha/", function (result) {
$('.captcha').attr('src', result['image_url']);
$('#id_captcha_0').val(result['key'])