Skip to content

Commit ad4df7a

Browse files
committed
client/modules/User/reducers: update root state of state.user to add password/email verification states + todo notes
1 parent 276356f commit ad4df7a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

client/modules/User/reducers.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ export type UserAction = {
1111
export const user = (
1212
state: Partial<PublicUser> & {
1313
authenticated: boolean;
14+
// TODO: use state of user from server as single source of truth:
15+
// Currently using redux state below, but server also has similar info.
16+
resetPasswordInitiate?: boolean;
17+
resetPasswordInvalid?: boolean;
18+
emailVerificationInitiate?: boolean;
19+
emailVerificationTokenState?: boolean;
1420
} = {
1521
authenticated: false
1622
},

0 commit comments

Comments
 (0)