You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-08-09 04:22:45 +03:00
Add Self-service Password Change (#2863)
Co-authored-by: Quentin Gliech <quenting@element.io>
This commit is contained in:
@@ -16,7 +16,9 @@ import { Route as AccountImport } from './routes/_account'
|
||||
import { Route as AccountIndexImport } from './routes/_account.index'
|
||||
import { Route as DevicesSplatImport } from './routes/devices.$'
|
||||
import { Route as ClientsIdImport } from './routes/clients.$id'
|
||||
import { Route as PasswordChangeIndexImport } from './routes/password.change.index'
|
||||
import { Route as AccountSessionsIndexImport } from './routes/_account.sessions.index'
|
||||
import { Route as PasswordChangeSuccessImport } from './routes/password.change.success'
|
||||
import { Route as EmailsIdVerifyImport } from './routes/emails.$id.verify'
|
||||
import { Route as AccountSessionsBrowsersImport } from './routes/_account.sessions.browsers'
|
||||
import { Route as AccountSessionsIdImport } from './routes/_account.sessions.$id'
|
||||
@@ -48,11 +50,21 @@ const ClientsIdRoute = ClientsIdImport.update({
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any)
|
||||
|
||||
const PasswordChangeIndexRoute = PasswordChangeIndexImport.update({
|
||||
path: '/password/change/',
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any)
|
||||
|
||||
const AccountSessionsIndexRoute = AccountSessionsIndexImport.update({
|
||||
path: '/sessions/',
|
||||
getParentRoute: () => AccountRoute,
|
||||
} as any)
|
||||
|
||||
const PasswordChangeSuccessRoute = PasswordChangeSuccessImport.update({
|
||||
path: '/password/change/success',
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any)
|
||||
|
||||
const EmailsIdVerifyRoute = EmailsIdVerifyImport.update({
|
||||
path: '/emails/$id/verify',
|
||||
getParentRoute: () => rootRoute,
|
||||
@@ -104,10 +116,18 @@ declare module '@tanstack/react-router' {
|
||||
preLoaderRoute: typeof EmailsIdVerifyImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
'/password/change/success': {
|
||||
preLoaderRoute: typeof PasswordChangeSuccessImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
'/_account/sessions/': {
|
||||
preLoaderRoute: typeof AccountSessionsIndexImport
|
||||
parentRoute: typeof AccountImport
|
||||
}
|
||||
'/password/change/': {
|
||||
preLoaderRoute: typeof PasswordChangeIndexImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -124,6 +144,8 @@ export const routeTree = rootRoute.addChildren([
|
||||
ClientsIdRoute,
|
||||
DevicesSplatRoute,
|
||||
EmailsIdVerifyRoute,
|
||||
PasswordChangeSuccessRoute,
|
||||
PasswordChangeIndexRoute,
|
||||
])
|
||||
|
||||
/* prettier-ignore-end */
|
||||
|
Reference in New Issue
Block a user