简体   繁体   中英

Validation with Vue.js and Firebase

I am going to create a login mask with Firebase in the background, but I don't really know how I can verify the credentials of the user.

For example: The user is typing administrator and password in the fields and if in Firebase the Entry administrator and password contains the same key, the page will be shown.

Does someone know how I am able to 'search' for my input values to get the keys and compare them to validate?

I don't want to use the Firebase Auth0 - Systematic.

firebase.auth().signInWithEmailAndPassword(email, password).catch(function(error) {
  // Handle Errors here.
  var errorCode = error.code;
  var errorMessage = error.message;
  // ...
});

Directly from the official docs at https://firebase.google.com/docs/auth/web/password-auth

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM