[英]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. 我将在后台使用Firebase创建一个登录掩码,但是我真的不知道如何验证用户的凭据。
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. 例如:用户在字段中键入
administrator
和password
,如果在Firebase中,条目管理员和密码包含相同的密钥,则将显示该页面。
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 Auth0-系统。
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 直接来自https://firebase.google.com/docs/auth/web/password-auth上的官方文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.