Skip to content
This repository was archived by the owner on Jan 5, 2022. It is now read-only.

Commit 2e7fd77

Browse files
committed
Fixed swallowed register verification notification if remember me was active
1 parent 2d53cec commit 2e7fd77

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

modules/web/app/src/routes/RegisterVerification/RegisterVerification.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ import { RegisterVerificationRequest } from "common"
3434
import { Loading } from "components"
3535
import {
3636
withFormSubmit,
37-
WithFormSubmit
37+
WithFormSubmit,
38+
withRememberMe,
39+
WithRememberMe
3840
} from "enhancers"
3941

4042
import { RegisterVerificationSuccess } from "./RegisterVerificationSuccess"
@@ -47,6 +49,7 @@ import { RegisterVerificationSuccess } from "./RegisterVerificationSuccess"
4749
* Lifecycle properties
4850
*/
4951
type LifecycleProps =
52+
& WithRememberMe
5053
& WithFormSubmit<RegisterVerificationRequest>
5154

5255
/**
@@ -76,13 +79,15 @@ export const Render: React.FunctionComponent =
7679
*/
7780
export function enhance() {
7881
return compose(
82+
withRememberMe(),
7983
withFormSubmit<RegisterVerificationRequest>({
8084
message: "You have successfully verified your email address. " +
8185
"Use your email address and password to sign in to your account"
8286
}),
8387
lifecycle<LifecycleProps, {}>({
8488
componentDidMount() {
85-
const { submit } = this.props
89+
const { submit, setRememberMeFailed } = this.props
90+
setRememberMeFailed()
8691
return submit()
8792
}
8893
}),

0 commit comments

Comments
 (0)