<分区>
我使用带有 firebase 的 Angular 应用程序,并且我具有允许管理员用户创建更多用户的功能 这是我在 AuthService 中使用的代码
registerEmployeeByEmail(user: User, password: string): Observable<void> {
return from(this.afAuth.auth.createUserWithEmailAndPassword(user.email, password).then(credentials => {
user.id = credentials.user.uid;
this.db.doc(this.dbPath + user.id).set(user);
}));
}
问题是在新用户登录后,想法不是让他自动登录...