ayon-frontend icon indicating copy to clipboard operation
ayon-frontend copied to clipboard

AY-7317_Password reset requirements hint

Open ynbot opened this issue 11 months ago • 2 comments

Please describe the enhancement you have in mind and explain what the current shortcomings are?

Typing invalid password only shows this pop-up bottom right:

Image

How would you imagine the implementation of the enhancemenent?

The requirements are defined on the server, so maybe we can write them in plain english on the client.

Provide human-readable information about what's wrong.

Describe alternatives you've considered:

No response

Additional context:

link to discussion on Discord (might be a private channel)

This issue was automatically created from Clickup ticket AY-7317

ynbot avatar Jan 13 '25 21:01 ynbot

  • Password reset page
  • Users password set dialog

Image

Innders avatar Feb 11 '25 09:02 Innders

The requirements are actually reported by the server in a 'readable manner' here

However changing the password does not 'raise' the same thing here with response here. Likely re-raising the message may sufficiently help to provide more details when it is actually wrong?

And hence lacks that information.

Also note that the minimum password length can be adjusted on the server side using ayonconfig so I wonder if it's worth it for the client to somehow request from the server what the requirements are - and then report those requirements to the user. So that the server is still in control of describing the current requirements? Otherwise we may not know about the password length check?

As such, this may be more related to the backend?

BigRoy avatar Feb 17 '25 11:02 BigRoy

@martastain Can you please chime in on this one ? Do we need backend support ?

philippe-ynput avatar Jul 01 '25 14:07 philippe-ynput

This is backend-related, all validation and configuration for password security is handled on the server. The frontend only displays the messages provided by the backend, so more specific messages need to be returned. Password: password endpoints return only generic error instead of specific validation messages

filipvnencak avatar Oct 02 '25 06:10 filipvnencak