[F] Fix optional in password text unwrapping

This commit is contained in:
Hykilpikonna
2021-01-22 15:08:02 -05:00
parent a375f16947
commit facf8eaeec
+1 -1
View File
@@ -31,7 +31,7 @@ class LoginVC: UIViewController
alert("Username Invalid", "Username must be 3 to 16 characters long, and must only contain a-z, 0-9, underscore, and minus signs (-).")
return
}
guard password.text?.count? > 8 else
guard let text = password.text, text.count > 8 else
{
alert("Password Invalid", "Password must be more than 8 characters long")
}