Skip to content

Commit b6fdfb4

Browse files
committed
fixup! Use the code store and brig time effects
1 parent a946495 commit b6fdfb4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

services/brig/src/Brig/API/User.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ import Brig.Options hiding (Timeout, internalEvents)
116116
import Brig.Password
117117
import qualified Brig.Queue as Queue
118118
import Brig.Sem.BrigTime (BrigTime)
119-
import Brig.Sem.CodeStore hiding (mkPasswordResetKey)
119+
import Brig.Sem.CodeStore (CodeStore)
120+
import qualified Brig.Sem.CodeStore as E
120121
import qualified Brig.Team.DB as Team
121122
import Brig.Types
122123
import Brig.Types.Code (Timeout (..))
@@ -1002,7 +1003,7 @@ completePasswordReset ident code pw = do
10021003
checkNewIsDifferent uid pw
10031004
lift $ do
10041005
wrapClient $ Data.updatePassword uid pw
1005-
liftSem $ codeDelete key
1006+
liftSem $ E.codeDelete key
10061007
wrapClient $ revokeAllCookies uid
10071008

10081009
-- | Pull the current password of a user and compare it against the one about to be installed.

0 commit comments

Comments
 (0)