You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
492 B

  1. $(function () {
  2. $("#signup-go").on("click", function() {
  3. var email = $("#signup-email").val();
  4. var token = $('input[name=csrfmiddlewaretoken]').val();
  5. $.ajax({
  6. url: "/accounts/signup/",
  7. type: "post",
  8. headers: {"X-CSRFToken": token},
  9. data: {"identity": email},
  10. success: function(data) {
  11. $("#signup-result").html(data).show();
  12. }
  13. });
  14. return false;
  15. });
  16. });