firebase / firebase/quickstart-android

app crashes with FirebaseAuthWeakPasswordException Password should be at least 6 characters

Open
#1,521 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Kotlin
Stars
9.3k
Forks
7.4k
Avg merge
2d 19h
Merged PRs (30d)
8

Description

current version of sign up is wrong, password is not validated on front end properly

when I enter 4 characters password, app crashes

`com.google.android.gms.tasks.RuntimeExecutionException: com.google.firebase.auth.FirebaseAuthWeakPasswordException: The given password is invalid. [ Password should be at least 6 characters ]
at com.google.android.gms.tasks.zzw.getResult(com.google.android.gms:play-services-tasks@@18.0.2:3)
at com.google.firebase.quickstart.database.kotlin.SignInFragment.signUp$lambda$5(SignInFragment.kt:102)`

Contributor guide

Open the contributing guide

Research direction

The crash is reported at SignInFragment.kt:102 during signUp; inspect the password input and signup callback first. Reproduce with a four-character password, then verify invalid input is handled without the app crashing and that valid signup still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, firebase, kotlin
Domain
authentication, mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.