What i am trying to do is allow users to create other accounts but the issue i ran into was when i create a user using createUserWithEmailAndPassword i automatically get signed in as the new user. so how do i avoid it.
I am trying to create user from admin panel where admin is registered. If i use the following code it login with new user data.
This is the code:
submit(){
this.afAuth.createUserWithEmailAndPassword(this.form.Eemail, this.password).then( res => {
this.form.userid = res.user.uid;
this.user.addnotice(this.form);
this.cancel();
this.succesToast();
}, err =>{
this.failToast();
})
}