]> cat aescling's git repositories - mastodon.git/commit
Add client-side validation in password change forms (#14564)
authorThibG <thib@sitedethib.com>
Wed, 12 Aug 2020 10:11:15 +0000 (12:11 +0200)
committerGitHub <noreply@github.com>
Wed, 12 Aug 2020 10:11:15 +0000 (12:11 +0200)
commit7dc4c742650ac69ec9a4459b656e172283511e4c
tree43758243a2f4007e40a3c41b127bdf01a4a06b64
parentd70c3ab4c39e642d41138ab693af77dd6c258e8c
Add client-side validation in password change forms (#14564)

* Fix client-side username validation at registration

It used the Account::USERNAME_RE regexp which is for *remote* users,
local user validation is stricter. Also take into account max username length.

* Add client-side form validation for password change

* Add client-side form validation to dedicated registration form

Previous changes only applied to the /about page, not the dedicated form on
/auth
app/javascript/packs/public.js
app/views/about/_registration.html.haml
app/views/auth/passwords/edit.html.haml
app/views/auth/registrations/edit.html.haml
app/views/auth/registrations/new.html.haml