5505 forgot password feature broken (#5602)
- add missing `excludedOperations` in `packages/twenty-server/src/engine/middlewares/graphql-hydrate-request-from-token.middleware.ts` - update generated graphql file - Add missing redirection to index after password update
This commit is contained in:
@ -157,6 +157,14 @@ export type DeleteOneObjectInput = {
|
|||||||
id: Scalars['UUID'];
|
id: Scalars['UUID'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** Schema update on a table */
|
||||||
|
export enum DistantTableUpdate {
|
||||||
|
ColumnsAdded = 'COLUMNS_ADDED',
|
||||||
|
ColumnsDeleted = 'COLUMNS_DELETED',
|
||||||
|
ColumnsTypeChanged = 'COLUMNS_TYPE_CHANGED',
|
||||||
|
TableDeleted = 'TABLE_DELETED'
|
||||||
|
}
|
||||||
|
|
||||||
export type EmailPasswordResetLink = {
|
export type EmailPasswordResetLink = {
|
||||||
__typename?: 'EmailPasswordResetLink';
|
__typename?: 'EmailPasswordResetLink';
|
||||||
/** Boolean that confirms query was dispatched */
|
/** Boolean that confirms query was dispatched */
|
||||||
@ -585,7 +593,7 @@ export type RemoteTable = {
|
|||||||
id?: Maybe<Scalars['UUID']>;
|
id?: Maybe<Scalars['UUID']>;
|
||||||
name: Scalars['String'];
|
name: Scalars['String'];
|
||||||
schema?: Maybe<Scalars['String']>;
|
schema?: Maybe<Scalars['String']>;
|
||||||
schemaPendingUpdates?: Maybe<Array<TableUpdate>>;
|
schemaPendingUpdates?: Maybe<Array<DistantTableUpdate>>;
|
||||||
status: RemoteTableStatus;
|
status: RemoteTableStatus;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -625,14 +633,6 @@ export type Support = {
|
|||||||
supportFrontChatId?: Maybe<Scalars['String']>;
|
supportFrontChatId?: Maybe<Scalars['String']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Schema update on a table */
|
|
||||||
export enum TableUpdate {
|
|
||||||
ColumnsAdded = 'COLUMNS_ADDED',
|
|
||||||
ColumnsDeleted = 'COLUMNS_DELETED',
|
|
||||||
ColumnsTypeChanged = 'COLUMNS_TYPE_CHANGED',
|
|
||||||
TableDeleted = 'TABLE_DELETED'
|
|
||||||
}
|
|
||||||
|
|
||||||
export type Telemetry = {
|
export type Telemetry = {
|
||||||
__typename?: 'Telemetry';
|
__typename?: 'Telemetry';
|
||||||
anonymizationEnabled: Scalars['Boolean'];
|
anonymizationEnabled: Scalars['Boolean'];
|
||||||
@ -2095,7 +2095,7 @@ export type CheckUserExistsQueryHookResult = ReturnType<typeof useCheckUserExist
|
|||||||
export type CheckUserExistsLazyQueryHookResult = ReturnType<typeof useCheckUserExistsLazyQuery>;
|
export type CheckUserExistsLazyQueryHookResult = ReturnType<typeof useCheckUserExistsLazyQuery>;
|
||||||
export type CheckUserExistsQueryResult = Apollo.QueryResult<CheckUserExistsQuery, CheckUserExistsQueryVariables>;
|
export type CheckUserExistsQueryResult = Apollo.QueryResult<CheckUserExistsQuery, CheckUserExistsQueryVariables>;
|
||||||
export const ValidatePasswordResetTokenDocument = gql`
|
export const ValidatePasswordResetTokenDocument = gql`
|
||||||
query validatePasswordResetToken($token: String!) {
|
query ValidatePasswordResetToken($token: String!) {
|
||||||
validatePasswordResetToken(passwordResetToken: $token) {
|
validatePasswordResetToken(passwordResetToken: $token) {
|
||||||
id
|
id
|
||||||
email
|
email
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { gql } from '@apollo/client';
|
import { gql } from '@apollo/client';
|
||||||
|
|
||||||
export const VALIDATE_PASSWORD_RESET_TOKEN = gql`
|
export const VALIDATE_PASSWORD_RESET_TOKEN = gql`
|
||||||
query validatePasswordResetToken($token: String!) {
|
query ValidatePasswordResetToken($token: String!) {
|
||||||
validatePasswordResetToken(passwordResetToken: $token) {
|
validatePasswordResetToken(passwordResetToken: $token) {
|
||||||
id
|
id
|
||||||
email
|
email
|
||||||
|
|||||||
@ -144,6 +144,7 @@ export const PasswordReset = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
await signInWithCredentials(email || '', formData.newPassword);
|
await signInWithCredentials(email || '', formData.newPassword);
|
||||||
|
navigate(AppPath.Index);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logError(err);
|
logError(err);
|
||||||
enqueueSnackBar(
|
enqueueSnackBar(
|
||||||
|
|||||||
@ -31,6 +31,9 @@ export class GraphQLHydrateRequestFromTokenMiddleware
|
|||||||
'Verify',
|
'Verify',
|
||||||
'SignUp',
|
'SignUp',
|
||||||
'RenewToken',
|
'RenewToken',
|
||||||
|
'EmailPasswordResetLink',
|
||||||
|
'ValidatePasswordResetToken',
|
||||||
|
'UpdatePasswordViaResetToken',
|
||||||
'IntrospectionQuery',
|
'IntrospectionQuery',
|
||||||
'ExchangeAuthorizationCode',
|
'ExchangeAuthorizationCode',
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user