Question:
I’m still very new at this so apologize for any minor mistake I madeI’m trying to learn how to make a login system with email and password using Firebase but it doesn’t seem to work as intended. The code to check whether the email is empty, incorrect format, password length not matching the parameter is not working too. I double check my code before running and I’m not getting any result.
I already connect this app to Firebase and add Firebase Authentication SDK
Clicking the login button will not make any error as intended
loginPage.kt
homePage.kt
EditText for entering email (in login_page.xml)
Answer:
The password should always be greater than or equal to 6 and in your case, the condition is opposite. Fix it like this:The issue is that you are using
binding
but not passing it in setContentView
. Fix it like this:If you have better answer, please add a comment about this, thank you!