2021年3月11日星期四

Unable to register user on firebase auth from angular multistep registration form

Unable to register email and password to firebase auth. My webpage is a multistep registration form which takes all the details and saves it to the firebase database but unable to register on firebase auth.

   export class FormComponent implements OnInit {                userList: AngularFireList<any>;         email: "";         password:"";         submitted: any = false;         multistep = new FormGroup({              userDetails: new FormGroup({                 name: new FormControl(''),                 gender : new FormControl(''),                 email : new FormControl(""),                 password : new FormControl(''),                 confirm : new FormControl('')              }),              academicDetails: new FormGroup({                 education: new FormControl(''),              }),              workExperiance: new FormGroup({                 skill: new FormControl('null'),              })         })        constructor(           private authservice: AuthService,           public route: Router,           private firebase: AngularFireDatabase         ) {              this.userList = this.firebase.list('users');           }              ngOnInit(): void {         }         get userDetails() {           return this.multistep.controls['userDetails']['controls'];         }              get academicDetails() {           return this.multistep.controls['academicDetails']['controls'];         }              get workExperiance() {           return this.multistep.controls['workExperiance']['controls'];         }              submit(userForm: NgForm) {                 this.addUsersFromFirebase(userForm.value);               this.authservice.registerWithEmail(this.email, this.password)                 .then(()=>{                   console.log("you're registered !");                 })                 .catch(error=>{                   console.log(error);                   this.route.navigate(['/form']);                 });                                       }       }          }  

###showing this error [1]: https://i.stack.imgur.com/WgdYV.png

https://stackoverflow.com/questions/66590726/unable-to-register-user-on-firebase-auth-from-angular-multistep-registration-for March 12, 2021 at 05:21AM

没有评论:

发表评论