Skip to content

Conversation

@daltontf
Copy link
Contributor

Add an error message that says "Invalid password" when the password is missing.

Add an error message that says "Invalid password" when the password is missing.

Signed-off-by: Tim Dalton <daltont@objectcomputing.com>
Signed-off-by: Tim Dalton <daltont@objectcomputing.com>
passwordInput = passwordValidator(passwordInput);
if (emailInput.value && passwordInput.value) {
if (emailInput.value && passwordInput.value !== undefined) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

		if (emailInput.type === 'valid' && passwordInput.type === 'valid') {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Signed-off-by: Tim Dalton <daltont@objectcomputing.com>
passwordInput = passwordValidator(passwordInput);
if (emailInput.value && passwordInput.value !== undefined) {
if (emailInput.value && passwordInput.type === 'valid') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should use the same check for each of the validated inputs like below.

if (emailInput.type === 'valid' && passwordInput.type === 'valid') {

@daltontf daltontf requested a review from stanleykc December 30, 2025 17:14
…n check

Signed-off-by: Kevin Stanley <stanleyk@objectcomputing.com>
@stanleykc stanleykc merged commit 6d1898c into main Jan 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants