angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

signInWithEmailAndPassword add one more condition

Open sami6002 opened this issue 8 years ago • 1 comments

Version info

Angular: 6.x Firebase: 5.5.x AngularFire: 2 Other (e.g. Ionic/Cordova, Node, browser, operating system):

How to reproduce these conditions

Failing test unit, Plunkr, or JSFiddle demonstrating the problem

Steps to set up and reproduce

Sample data and security rules

<-- include/attach/link to some json sample data (or provide credentials to a sanitized, test Firebase project) -->

Debug output

** Errors in the JavaScript console **

** Output from firebase.database().enableLogging(true); **

** Screenshots **

Expected behavior

except for email and password , I want to add one condition this condition is needed to query the firestore.

the login condition is following: When I login with email and password succeed, I do not want the firebase let me in login status until the additional condition pass. Then, firebase let me login.

thx.

Actual behavior

sami6002 avatar Oct 25 '18 03:10 sami6002

Hi.

Not quite is an issue with this package, is more like bussines logic. The solution is a mix between rules [https://firebase.google.com/docs/database/security/?hl=es-419 ] on you database, then query before try login.

miyelo avatar Oct 30 '18 18:10 miyelo