Advertisement
Guest User

signup script

a guest
Nov 16th, 2016
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. submitForm: function (e){
  2.   if (e) { e.preventDefault(); }
  3.   console.log(document.getElementById('form').validate());
  4.   if (document.getElementById('form').validate()) {
  5.     nama = document.getElementById('form').serialize()["nama"];
  6.     email = document.getElementById('form').serialize()["email"];
  7.     password = document.getElementById('form').serialize()["password"];
  8.     this.$.auth.createUserWithEmailAndPassword(email, password).then(function(response){}).catch(function(error){});
  9.     this.reset();
  10.   }
  11. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement