Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong error message for PasswordTooLong error #724

Closed
josecelano opened this issue Sep 6, 2024 · 0 comments · Fixed by #725
Closed

Wrong error message for PasswordTooLong error #724

josecelano opened this issue Sep 6, 2024 · 0 comments · Fixed by #725
Assignees
Labels
Bug Incorrect Behavior
Milestone

Comments

@josecelano
Copy link
Member

Reported in: torrust/torrust-index-gui#613

pub enum ServiceError {
    #[display(fmt = "internal server error")]
    InternalServerError,

    // ...

    #[display(fmt = "Password too short")]
    PasswordTooShort,
    #[display(fmt = "Username too long")]
    PasswordTooLong,
    #[display(fmt = "Passwords don't match")]
    PasswordsDontMatch,

    // ...

It should be:

pub enum ServiceError {
    #[display(fmt = "internal server error")]
    InternalServerError,

    // ...

    #[display(fmt = "Password too short")]
    PasswordTooShort,
    #[display(fmt = "Password too long")]
    PasswordTooLong,
    #[display(fmt = "Passwords don't match")]
    PasswordsDontMatch,

    // ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Incorrect Behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant