Skip to content

Commit

Permalink
fix: reset password form issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurin-W authored Oct 22, 2024
2 parents 60a3825 + e871ec7 commit dd149a0
Show file tree
Hide file tree
Showing 12 changed files with 1,045 additions and 884 deletions.
332 changes: 177 additions & 155 deletions src/frontend/packages/auth-provider/dist/index.cjs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/frontend/packages/auth-provider/dist/index.cjs.js.map

Large diffs are not rendered by default.

851 changes: 459 additions & 392 deletions src/frontend/packages/auth-provider/dist/index.d.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/frontend/packages/auth-provider/dist/index.d.ts.map
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"mappings":";;ACUA;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAidC;AC3dD,eAAsB,UAAU,GAAG,YAAY,GAAG,WAAW,GAAG,aAAa,CAAC;AAE9E,8DAA8D;AAC9D,gBAAuB,YAAY,GAAG,wBAAwB,CAAC;AAE/D,sBAAsB;IACpB,sDAAsD;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,mBAAmB,CAAC;IAC7B,UAAU,EAAE,OAAO,CAAC;CACrB,GAAG,CACA;IACE,2BAA2B;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,GACD;IACE,0BAA0B;IAC1B,aAAa,EAAE,MAAM,CAAC;CACvB,CACJ,CAAC;AAEF,sBAAsB,cAAc,GAAG;IACrC,wBAAwB;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,uBAAuB,cAAc,GAAG;IACtC,6BAA6B;IAC7B,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,uBAAuB,cAAc,GAAG;IACtC,gBAAgB,EAAE,QAAQ,GAAG,QAAQ,EAAE,CAAC;CACzC,CAAC;AAEF,kBAAkB,cAAc,GAAG,eAAe,GAAG,eAAe,CAAC;AAErE,mBAA0B,UAAU,EAAE,CAAC;AChBvC,QAAO,MAAM;;;;;;;CAOZ,CAAC;ACvBF,OAAA,MAAM,2BAA4B,MAAM,QAAQ,MAAM,aAAa,gBAAe,MAAM,4BAavF,CAAC;ACbF,2FAKC;;;;;;AKLD;;;;EA4FC;AE3FD;;4CAcC;;;;;;ACLD,OAAA,MAAM,yEAkBL,CAAC;AC7BF,wGAOC;ACAD,OAAA,MAAM,4BAA4B,MAAM,iBAAiB,CAAC,YAAY,CAKrE,CAAC;ACVF,yFAYC;;;;;;ACdD,sGAOC;ACID;;;;;;;;;;;4CA2CC;ACtDD,yFAAwD;;;;;;ACWxD,OAAA,MAAM,yEAkBL,CAAC;AC5BF,yFAIC;;;;;;ACLD;;;;;;;4CAqBC;;;;;;;;;;;;;;ACdD;;;;;;;;mDAuHC;;;;;;;;AC/HD,kDAIC;ACLD;;;;;;;;;;GAUG;AAEH,sCAAsC;AACtC,2CADW,uBAAuB,CAUhC;AAyBK;;;;EAcN;;IAVY,+CAAqD;;;;;;;;sBAjDpD,MAAM;;;;kBACN,MAAM;;;;qBACN,MAAM;;;;iBACN,MAAM;;;;oBACN,MAAM;;;;oBACN,MAAM;;;;kBACN,MAAM;;;;2BACN,MAAM;;ACTpB;;;;+DAOC;AELD;;;;;;;;4CAGC;AOMD;;;;;;;;;;;GAWG;AACH;IAV0B,SAAS,EAAxB,OAAO;IACQ,aAAa,EAA5B,OAAO;IACS,OAAO;IACP,QAAQ;IACV,sBAAsB,EAApC,MAAM;IACQ,cAAc,EAA5B,MAAM;mDA2FhB;;;;;;;;ACzGD;;;;4CAYC;ACWD;;;;4CA0BC;;;;;;;ACnDD;;;EAcC;ACPD;;;EA6BC","sources":["packages/auth-provider/src/src/utils.js","packages/auth-provider/src/src/authProvider.js","packages/auth-provider/src/src/types.ts","packages/auth-provider/src/src/constants.ts","packages/auth-provider/src/src/hooks/useCheckPermissions.ts","packages/auth-provider/src/src/crud/create/CreateWithPermissions.js","packages/auth-provider/src/src/components/PermissionsButton/AddPermissionsForm.js","packages/auth-provider/src/src/components/PermissionsButton/AgentIcon.js","packages/auth-provider/src/src/components/PermissionsButton/AgentItem.js","packages/auth-provider/src/src/components/PermissionsButton/EditPermissionsForm.js","packages/auth-provider/src/src/hooks/useAgents.js","packages/auth-provider/src/src/components/PermissionsButton/PermissionsDialog.js","packages/auth-provider/src/src/components/PermissionsButton/PermissionsButton.js","packages/auth-provider/src/src/crud/edit/EditActionsWithPermissions.tsx","packages/auth-provider/src/src/crud/edit/DeleteButtonWithPermissions.js","packages/auth-provider/src/src/crud/edit/EditToolbarWithPermissions.tsx","packages/auth-provider/src/src/crud/edit/EditWithPermissions.js","packages/auth-provider/src/src/crud/edit/EditButtonWithPermissions.js","packages/auth-provider/src/src/crud/list/ListActionsWithPermissions.js","packages/auth-provider/src/src/crud/list/ListWithPermissions.js","packages/auth-provider/src/src/crud/show/ShowActionsWithPermissions.tsx","packages/auth-provider/src/src/crud/show/ShowWithPermissions.js","packages/auth-provider/src/src/components/AuthDialog.js","packages/auth-provider/src/src/components/SsoLoginPage.js","packages/auth-provider/src/src/hooks/useSignup.js","packages/auth-provider/src/src/passwordScorer.js","packages/auth-provider/src/src/components/LocalLoginPage/validatePasswordStrength.js","packages/auth-provider/src/src/components/LocalLoginPage/ColorGradientProgressBar.js","packages/auth-provider/src/src/components/LocalLoginPage/PasswordStrengthIndicator.js","packages/auth-provider/src/src/components/LocalLoginPage/SignupForm.tsx","packages/auth-provider/src/src/components/LocalLoginPage/LoginForm.tsx","packages/auth-provider/src/src/components/LocalLoginPage/NewPasswordForm.js","packages/auth-provider/src/src/components/LocalLoginPage/ResetPasswordForm.js","packages/auth-provider/src/src/components/LocalLoginPage/SimpleBox.js","packages/auth-provider/src/src/components/LocalLoginPage/getSearchParamsRest.js","packages/auth-provider/src/src/components/LocalLoginPage/LocalLoginPage.js","packages/auth-provider/src/src/components/ResourceWithPermissions.js","packages/auth-provider/src/src/components/UserMenu.js","packages/auth-provider/src/src/hooks/useCheckAuthenticated.js","packages/auth-provider/src/src/hooks/usePermissionsWithRefetch.js","packages/auth-provider/src/src/messages/english.js","packages/auth-provider/src/src/messages/french.js","packages/auth-provider/src/src/index.ts","packages/auth-provider/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"export { default as authProvider } from './authProvider';\n\n// Create\nexport { default as CreateWithPermissions } from './crud/create/CreateWithPermissions';\n\n// Edit\nexport { default as EditWithPermissions } from './crud/edit/EditWithPermissions';\nexport { default as EditActionsWithPermissions } from './crud/edit/EditActionsWithPermissions';\nexport { default as EditToolbarWithPermissions } from './crud/edit/EditToolbarWithPermissions';\nexport { default as EditButtonWithPermissions } from './crud/edit/EditButtonWithPermissions';\nexport { default as DeleteButtonWithPermissions } from './crud/edit/DeleteButtonWithPermissions';\n\n// List\nexport { default as ListWithPermissions } from './crud/list/ListWithPermissions';\nexport { default as ListActionsWithPermissions } from './crud/list/ListActionsWithPermissions';\n\n// Show\nexport { default as ShowWithPermissions } from './crud/show/ShowWithPermissions';\nexport { default as ShowActionsWithPermissions } from './crud/show/ShowActionsWithPermissions';\n\nexport { default as PermissionsButton } from './components/PermissionsButton/PermissionsButton';\nexport { default as AuthDialog } from './components/AuthDialog';\nexport { default as SsoLoginPage, default as LoginPage } from './components/SsoLoginPage';\nexport { default as LocalLoginPage } from './components/LocalLoginPage/LocalLoginPage';\nexport { default as ResourceWithPermissions } from './components/ResourceWithPermissions';\nexport { default as UserMenu } from './components/UserMenu';\n\nexport { default as useAgents } from './hooks/useAgents';\nexport { default as useCheckAuthenticated } from './hooks/useCheckAuthenticated';\nexport { default as useCheckPermissions } from './hooks/useCheckPermissions';\nexport { default as usePermissionsWithRefetch } from './hooks/usePermissionsWithRefetch';\nexport { default as useSignup } from './hooks/useSignup';\n\n// Password scoring\nexport { default as PasswordStrengthIndicator } from './components/LocalLoginPage/PasswordStrengthIndicator';\nexport { default as validatePasswordStrength } from './components/LocalLoginPage/validatePasswordStrength';\nexport {\n defaultScorer as defaultPasswordScorer,\n defaultOptions as defaultPasswordScorerOptions,\n createPasswordScorer\n} from './passwordScorer';\n\nexport { default as englishMessages } from './messages/english';\nexport { default as frenchMessages } from './messages/french';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
{"mappings":";;ACUA;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAidC;AC3dD,eAAsB,UAAU,GAAG,YAAY,GAAG,WAAW,GAAG,aAAa,CAAC;AAE9E,8DAA8D;AAC9D,gBAAuB,YAAY,GAAG,wBAAwB,CAAC;AAE/D,sBAAsB;IACpB,sDAAsD;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,mBAAmB,CAAC;IAC7B,UAAU,EAAE,OAAO,CAAC;CACrB,GAAG,CACA;IACE,2BAA2B;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,GACD;IACE,0BAA0B;IAC1B,aAAa,EAAE,MAAM,CAAC;CACvB,CACJ,CAAC;AAEF,sBAAsB,cAAc,GAAG;IACrC,wBAAwB;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,uBAAuB,cAAc,GAAG;IACtC,6BAA6B;IAC7B,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,uBAAuB,cAAc,GAAG;IACtC,gBAAgB,EAAE,QAAQ,GAAG,QAAQ,EAAE,CAAC;CACzC,CAAC;AAEF,kBAAkB,cAAc,GAAG,eAAe,GAAG,eAAe,CAAC;AAErE,mBAA0B,UAAU,EAAE,CAAC;AChBvC,QAAO,MAAM;;;;;;;CAOZ,CAAC;ACvBF,OAAA,MAAM,2BAA4B,MAAM,QAAQ,MAAM,aAAa,gBAAe,MAAM,4BAavF,CAAC;ACbF,2FAKC;;;;;;AKLD;;;;EA4FC;AE3FD;;4CAcC;;;;;;ACLD,OAAA,MAAM,yEAkBL,CAAC;AC7BF,wGAOC;ACAD,OAAA,MAAM,4BAA4B,MAAM,iBAAiB,CAAC,YAAY,CAKrE,CAAC;ACVF,yFAYC;;;;;;ACdD,sGAOC;ACID;;;;;;;;;;;4CA2CC;ACtDD,yFAAwD;;;;;;ACWxD,OAAA,MAAM,yEAkBL,CAAC;AC5BF,yFAIC;;;;;;ACLD;;;;;;;4CAqBC;;;;;;;;;;;;;;ACdD;;;;;;;;mDAuHC;;;;;;;;AC/HD,kDAIC;ACLD;;;;;;;;;;GAUG;AAEH,sCAAsC;AACtC,2CADW,uBAAuB,CAUhC;AAyBK;;;;EAcN;;IAVY,+CAAqD;;;;;;;;sBAjDpD,MAAM;;;;kBACN,MAAM;;;;qBACN,MAAM;;;;iBACN,MAAM;;;;oBACN,MAAM;;;;oBACN,MAAM;;;;kBACN,MAAM;;;;2BACN,MAAM;;ACTpB;;;;+DAOC;AELD;;;;;;;;4CAGC;AOMD;;;;;;;;;;;GAWG;AACH;IAV0B,SAAS,EAAxB,OAAO;IACQ,aAAa,EAA5B,OAAO;IACS,OAAO;IACP,QAAQ;IACV,sBAAsB,EAApC,MAAM;IACQ,cAAc,EAA5B,MAAM;mDA2FhB;;;;;;;;ACzGD;;;;4CAYC;ACWD;;;;4CA0BC;;;;;;;ACnDD;;;EAcC;ACPD;;;EA6BC","sources":["packages/auth-provider/src/src/utils.js","packages/auth-provider/src/src/authProvider.js","packages/auth-provider/src/src/types.ts","packages/auth-provider/src/src/constants.ts","packages/auth-provider/src/src/hooks/useCheckPermissions.ts","packages/auth-provider/src/src/crud/create/CreateWithPermissions.js","packages/auth-provider/src/src/components/PermissionsButton/AddPermissionsForm.js","packages/auth-provider/src/src/components/PermissionsButton/AgentIcon.js","packages/auth-provider/src/src/components/PermissionsButton/AgentItem.js","packages/auth-provider/src/src/components/PermissionsButton/EditPermissionsForm.js","packages/auth-provider/src/src/hooks/useAgents.js","packages/auth-provider/src/src/components/PermissionsButton/PermissionsDialog.js","packages/auth-provider/src/src/components/PermissionsButton/PermissionsButton.js","packages/auth-provider/src/src/crud/edit/EditActionsWithPermissions.tsx","packages/auth-provider/src/src/crud/edit/DeleteButtonWithPermissions.js","packages/auth-provider/src/src/crud/edit/EditToolbarWithPermissions.tsx","packages/auth-provider/src/src/crud/edit/EditWithPermissions.js","packages/auth-provider/src/src/crud/edit/EditButtonWithPermissions.js","packages/auth-provider/src/src/crud/list/ListActionsWithPermissions.js","packages/auth-provider/src/src/crud/list/ListWithPermissions.js","packages/auth-provider/src/src/crud/show/ShowActionsWithPermissions.tsx","packages/auth-provider/src/src/crud/show/ShowWithPermissions.js","packages/auth-provider/src/src/components/AuthDialog.js","packages/auth-provider/src/src/components/SsoLoginPage.js","packages/auth-provider/src/src/hooks/useSignup.js","packages/auth-provider/src/src/passwordScorer.js","packages/auth-provider/src/src/components/LocalLoginPage/validatePasswordStrength.js","packages/auth-provider/src/src/components/LocalLoginPage/ColorGradientProgressBar.js","packages/auth-provider/src/src/components/LocalLoginPage/PasswordStrengthIndicator.js","packages/auth-provider/src/src/components/LocalLoginPage/SignupForm.tsx","packages/auth-provider/src/src/components/LocalLoginPage/LoginForm.tsx","packages/auth-provider/src/src/components/LocalLoginPage/NewPasswordForm.tsx","packages/auth-provider/src/src/components/LocalLoginPage/ResetPasswordForm.tsx","packages/auth-provider/src/src/components/LocalLoginPage/SimpleBox.js","packages/auth-provider/src/src/components/LocalLoginPage/getSearchParamsRest.js","packages/auth-provider/src/src/components/LocalLoginPage/LocalLoginPage.js","packages/auth-provider/src/src/components/ResourceWithPermissions.js","packages/auth-provider/src/src/components/UserMenu.js","packages/auth-provider/src/src/hooks/useCheckAuthenticated.js","packages/auth-provider/src/src/hooks/usePermissionsWithRefetch.js","packages/auth-provider/src/src/messages/english.js","packages/auth-provider/src/src/messages/french.js","packages/auth-provider/src/src/index.ts","packages/auth-provider/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"export { default as authProvider } from './authProvider';\n\n// Create\nexport { default as CreateWithPermissions } from './crud/create/CreateWithPermissions';\n\n// Edit\nexport { default as EditWithPermissions } from './crud/edit/EditWithPermissions';\nexport { default as EditActionsWithPermissions } from './crud/edit/EditActionsWithPermissions';\nexport { default as EditToolbarWithPermissions } from './crud/edit/EditToolbarWithPermissions';\nexport { default as EditButtonWithPermissions } from './crud/edit/EditButtonWithPermissions';\nexport { default as DeleteButtonWithPermissions } from './crud/edit/DeleteButtonWithPermissions';\n\n// List\nexport { default as ListWithPermissions } from './crud/list/ListWithPermissions';\nexport { default as ListActionsWithPermissions } from './crud/list/ListActionsWithPermissions';\n\n// Show\nexport { default as ShowWithPermissions } from './crud/show/ShowWithPermissions';\nexport { default as ShowActionsWithPermissions } from './crud/show/ShowActionsWithPermissions';\n\nexport { default as PermissionsButton } from './components/PermissionsButton/PermissionsButton';\nexport { default as AuthDialog } from './components/AuthDialog';\nexport { default as SsoLoginPage, default as LoginPage } from './components/SsoLoginPage';\nexport { default as LocalLoginPage } from './components/LocalLoginPage/LocalLoginPage';\nexport { default as ResourceWithPermissions } from './components/ResourceWithPermissions';\nexport { default as UserMenu } from './components/UserMenu';\n\nexport { default as useAgents } from './hooks/useAgents';\nexport { default as useCheckAuthenticated } from './hooks/useCheckAuthenticated';\nexport { default as useCheckPermissions } from './hooks/useCheckPermissions';\nexport { default as usePermissionsWithRefetch } from './hooks/usePermissionsWithRefetch';\nexport { default as useSignup } from './hooks/useSignup';\n\n// Password scoring\nexport { default as PasswordStrengthIndicator } from './components/LocalLoginPage/PasswordStrengthIndicator';\nexport { default as validatePasswordStrength } from './components/LocalLoginPage/validatePasswordStrength';\nexport {\n defaultScorer as defaultPasswordScorer,\n defaultOptions as defaultPasswordScorerOptions,\n createPasswordScorer\n} from './passwordScorer';\n\nexport { default as englishMessages } from './messages/english';\nexport { default as frenchMessages } from './messages/french';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
Loading

0 comments on commit dd149a0

Please sign in to comment.