Skip to content

fix: Update password hash algoritm. - #1993

Merged
SandPod merged 20 commits into
serverpod:stable-1.2from
SandPod:update-password-hash-algoritm
Mar 11, 2024
Merged

SandPod merged 20 commits into
serverpod:stable-1.2from
SandPod:update-password-hash-algoritm

Conversation

@SandPod

@SandPod SandPod commented Mar 6, 2024 •

Copy link
Copy Markdown
Contributor

Change

Guidance for review.

Best reviewed commit by commit.
I made some refactoring for the authentication module to enable integration testing on the hash upgrade logic.

Pre-launch Checklist

  • I read the Contribute page and followed the process outlined there for submitting PRs.
  • This update contains only one single feature or bug fix and nothing else. (If you are submitting multiple fixes, please make multiple PRs.)
  • I read and followed the Dart Style Guide and formatted the code with dart format.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.
  • I added new tests to check the change I am making.
  • All existing and new tests are passing.
  • Any breaking changes are documented below.

If you need help, consider asking for advice on the discussion board.

Breaking changes

None - This change works with users existing stored passwords and will ensure that future passwords are saved with the safer hashing algorithm.

@SandPod
SandPod force-pushed the update-password-hash-algoritm branch from b03dc35 to 65ae01b Compare March 6, 2024 12:31
@SandPod
SandPod force-pushed the update-password-hash-algoritm branch from 65ae01b to 152b58f Compare March 6, 2024 12:49
@SandPod
SandPod marked this pull request as ready for review March 6, 2024 14:21
@SandPod SandPod changed the title Update password hash algoritm feat: Update password hash algoritm. Mar 6, 2024
@SandPod
SandPod requested a review from Isakdl March 6, 2024 14:24

@Isakdl Isakdl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice update, need to get this in!

Some comments in the code.

One thought I have do we also want to create a "reset password" method too? I mean that force resets for all users that is using the old method.

How are these methods intended to be used? Called manually in whatever way the user want? Would it be reasonable to support a flag?

@SandPod
SandPod requested a review from Isakdl March 8, 2024 15:41
@SandPod SandPod mentioned this pull request Mar 8, 2024
7 of 8 tasks

@Isakdl Isakdl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀 🚀 🚀

@SandPod SandPod mentioned this pull request Mar 11, 2024
8 tasks done
@SandPod SandPod changed the title feat: Update password hash algoritm. fix: Update password hash algoritm. Mar 11, 2024
@SandPod
SandPod merged commit a78b9e9 into serverpod:stable-1.2 Mar 11, 2024
@SandPod
SandPod deleted the update-password-hash-algoritm branch March 11, 2024 10:57
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants