-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
migrate to sveltekit action #1716
migrate to sveltekit action #1716
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few nits mostly 😉
I'm looking at the PHP...is there actually no password validation when changing your pasword 😲? In the long run I assume this validation will land in the new API, but this is maybe the best place for it now.
it depends where you look 😆 , but yes, we should have something like this in place: https://svelte.dev/repl/2d597987426345d697c5c6729dc2cacc?version=3.55.1 |
I would suggest that password validation (making sure the user typed it the same twice) should be done client-side and doesn't belong in the API layer. I can see making a case for password strength being enforced at the API layer, but we don't currently do that in PHP. |
Oh, of course you're right 🙈. We only pass 1 password to the server. Not sure what I was thinking there. |
yep, excellent point, I'll change that. |
🧪 See my test results on #1719. |
Ditto |
Description
This PR migrates the change password functionality toward a newer SvelteKit feature called Actions.
Checklist
QA testing
Testers, use the following instructions on our staging environment. Post your findings as a comment and include any meaningful screenshots, etc.