We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When we sanitize provider data, before saving it, we make sure to hash the password.
The function that does that looks smth like this:
function sanitize(data: { hashedPassword: string }): { hashedPassword: string } { data.hashedPassword = hash(data.hashedPassword); return data; }
This means that this fn can be accidentally called again on already sanitized provider data.
The function should look more like this:
function sanitize(data: { password: string }): { hashedPassword: string } { data.hashedPassword = hash(data.password); return data; }
so that the input and the output types are structurally different and you can't sanitize already sanitized data.
Related to https://github.com/wasp-lang/wasp/pull/2360/files#r1855479164
The text was updated successfully, but these errors were encountered:
infomiho
No branches or pull requests
When we sanitize provider data, before saving it, we make sure to hash the password.
The function that does that looks smth like this:
This means that this fn can be accidentally called again on already sanitized provider data.
The function should look more like this:
so that the input and the output types are structurally different and you can't sanitize already sanitized data.
Related to https://github.com/wasp-lang/wasp/pull/2360/files#r1855479164
The text was updated successfully, but these errors were encountered: