-
Notifications
You must be signed in to change notification settings - Fork 325
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
Move password reset code to AuthenticationSubsystem #4086
Move password reset code to AuthenticationSubsystem #4086
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.
glanced through about half of the PR. looks good!
e6f4ec2
to
1e1db5c
Compare
1e1db5c
to
e648388
Compare
f392fc4
to
207284e
Compare
18ae8b8
to
50150df
Compare
42850d1
to
52dfb19
Compare
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.
LGTM
libs/wire-subsystems/test/unit/Wire/MockInterpreters/UserKeyStore.hs
Outdated
Show resolved
Hide resolved
7b7be56
to
baf9c13
Compare
Also implement mock argon2id hash interpreter correctly. Sadly, this makes the tests very slow.
baf9c13
to
9eff1d1
Compare
…user-subsystem-add-password-reset-operation-s
This reverts commit 57ef069.
(this change is deferred to separate PR)
one more failure (flake? unrelated? serious?) -
|
flake! |
integration tests run times on CI:
not sure how representative these figures are, but they sure don't provide cause for worry. :-) |
Co-authored-by: Akshay Mankar <akshay@wire.com>
@@ -94,7 +94,7 @@ newCookie uid cid typ label = do | |||
cookieSucc = Nothing, | |||
cookieValue = tok | |||
} | |||
DB.insertCookie uid c Nothing | |||
adhocSessionStoreInterpreter $ Store.insertCookie uid (toUnitCookie c) Nothing |
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.
couldn't the effect signature have Cookie any
instead of Cookie ()
to make toUnitCookie
unnecessary?
anyway i don't want to create another hold-up. just wondering.
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.
It was that, but then writing the mock was a pain. I thought it made more sense anyway to make it ()
so its clear that the value is not stored.
interpret \case | ||
GetLocalUserAccountByUserKey localUserKey -> case (tUnqualified localUserKey) of | ||
UserEmailKey (EmailKey _ email) -> pure $ find (\u -> userEmail u.accountUser == Just email) initialUsers | ||
UserPhoneKey _ -> pure Nothing -- Phone stuff is deprecated and soon to be deleted anyway |
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.
i would have made this an error, but ok.
…ser-subsystem-add-password-reset-operation-s' into WPB-8890-polysemy-user-subsystem-add-password-reset-operation-s
https://wearezeta.atlassian.net/browse/WPB-8890
Checklist
changelog.d