This repository was archived by the owner on Jan 5, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
modules/web/app/src/routes/RegisterVerification Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ import { RegisterVerificationRequest } from "common"
3434import { Loading } from "components"
3535import {
3636 withFormSubmit ,
37- WithFormSubmit
37+ WithFormSubmit ,
38+ withRememberMe ,
39+ WithRememberMe
3840} from "enhancers"
3941
4042import { RegisterVerificationSuccess } from "./RegisterVerificationSuccess"
@@ -47,6 +49,7 @@ import { RegisterVerificationSuccess } from "./RegisterVerificationSuccess"
4749 * Lifecycle properties
4850 */
4951type LifecycleProps =
52+ & WithRememberMe
5053 & WithFormSubmit < RegisterVerificationRequest >
5154
5255/**
@@ -76,13 +79,15 @@ export const Render: React.FunctionComponent =
7679 */
7780export 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 } ) ,
You can’t perform that action at this time.
0 commit comments