Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add correct error reporting for blank password (#7391)

* add correct error reporting for blank password

* fix prettier

---------

Co-authored-by: zuccs <daniel@zuccon.com>

authored by

Samuel Newman
zuccs
and committed by
GitHub
82881d14 d7f5ee84

+8 -2
+8 -2
src/screens/Login/SetNewPasswordForm.tsx
··· 41 41 // Check that the code is correct. We do this again just incase the user enters the code after their pw and we 42 42 // don't get to call onBlur first 43 43 const formattedCode = checkAndFormatResetCode(resetCode) 44 - // TODO Better password strength check 45 - if (!formattedCode || !password) { 44 + 45 + if (!formattedCode) { 46 46 setError( 47 47 _( 48 48 msg`You have entered an invalid code. It should look like XXXXX-XXXXX.`, 49 49 ), 50 50 ) 51 + return 52 + } 53 + 54 + // TODO Better password strength check 55 + if (!password) { 56 + setError(_(msg`Please enter a password.`)) 51 57 return 52 58 } 53 59