Advertisement
Guest User

signin script

a guest
Nov 16th, 2016
238
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.     email = document.getElementById('form').serialize()["email"];
  6.     password = document.getElementById('form').serialize()["password"];
  7.     this.$.auth.signInWithEmailAndPassword(email, password).then(function(response){}).catch(function(error){});
  8.     this.reset();
  9.   }
  10. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement