我创建了一个表单来创建用户配置文件。但每当我创建用户时我都会遇到问题。已登录并已登录用户注销。请帮忙解决这个问题。
const successCreate = () => {
createUserWithEmailAndPassword(auth, email.value, confirmPassword.value)
.then(() => {
db.collection('businessForm')
.add({
schoolName: schoolName.value,
board: board.value,
subjects: [
subject1.value,
subject2.value,
subject3.value,
subject4.value,
subject5.value,
subject6.value,
subject7.value,
subject8.value,
],
email: email.value,
street: street.value,
city: city.value,
state: state.value,
mobile: mobile.value,
telephone: telephone.value,
isAdmin: true,
})
.then(() => {
isLoading.value = false
notyf.success('Account created successfully!')
})
.catch((err) => {
isLoading.value = false
notyf.error('Something went wrong. Try again later!')
})
})
.catch((err) => {
isLoading.value = false
notyf.error('Something went wrong. Try again later!')
})
}
任何解决方案表示赞赏!
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号