validCredentials

private fun validCredentials(username: String, email: String, password: String, confirmPw: String): Boolean

Checks whether the user entered valid credentials.

Return

true if the entered credentials were valid; false, otherwise.

Parameters

username

Username entered by the user.

email

Email address entered by the user.

password

Password entered by the user.

confirmPw

Password reentered by the user for confirmation.