Guest User

Untitled

a guest
Apr 13th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. $(document).ready(function(){
  2. $("#run_test").live('click', function(){
  3. $.getJSON(baseurl+"auth/run_test_account", function(json){
  4. $.get(baseurl+"auth/signout/", function(){
  5. $.ajax({
  6. type: "POST",
  7. url: "/auth/signin",
  8. data: { username: json.username, password: "qwerty" },
  9. success: function(){
  10. $.ajax({
  11. type: "POST",
  12. url: "/avatar/save",
  13. success: function(){
  14. redirect('home');
  15. }
  16. });
  17. }
  18. });
  19. });
  20. });
  21. return false;
  22. });
  23.  
  24. });
Add Comment
Please, Sign In to add comment