Skip to content

fix: validation message - #63434

Open
kristian-zendato wants to merge 3 commits into
masterfrom
fix/validation-message
Open

fix: validation message#63434
kristian-zendato wants to merge 3 commits into
masterfrom
fix/validation-message

Conversation

@kristian-zendato

@kristian-zendato kristian-zendato commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Improves form validation feedback in the following places:

  • Login: On failed login (wrong password, wrong account name, or disabled account), mark both the username and password fields as errors, not only the password field.
  • New Account: Show a clear custom validation message when the account name does not match the allowed character pattern (letters, numbers, spaces, and _.@-').
  • Sharing: Validate share expiration dates against native min/max constraints before saving, report invalid dates with the browser validation UI, and highlight invalid date inputs.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@kristian-zendato
kristian-zendato requested review from a team as code owners August 20, 2026 11:36
@kristian-zendato
kristian-zendato requested review from come-nc, icewind1991, provokateurin, skjnldsv, sorbaugh and susnux and removed request for a team August 20, 2026 11:36
type="date"
@input="onExpirationChange" />
@update:model-value="onExpirationChange"
@change="checkExpirationDateValidity" />

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I do not this this is needed, it should be enough to check this in saveShare no?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@susnux That makes sense. But here is comment for the issue.
error message is displayed only after clicking update - should be displayed right away

That's why I check the validation on every input.

Comment thread .htaccess Outdated
Comment on lines +199 to +202
#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####

ErrorDocument 403 /server/index.php/error/403
ErrorDocument 404 /server/index.php/error/404

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@kristian-zendato kristian-zendato changed the title Fix/validation message fix: validation message Aug 20, 2026
Signed-off-by: kristian-zendato <kristian.zendato@nextcloud.com>
Signed-off-by: kristian-zendato <kristian.zendato@nextcloud.com>
Signed-off-by: kristian-zendato <kristian.zendato@nextcloud.com>
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.

2 participants