ForgottenPassword: Move view to login screen (#25366)

* Add forgot password to login screen

* Add ForgottenPassword component

* Add spacing

* Generate new emails and handle resetCode

* Fix animation and small UX issues

* Extract LoginLayout and add route for reset mail

* Reset email template

* Add ChangePasswordPage

* Remove resetCode

* Move style into variable

* Fix strict null
This commit is contained in:
Tobias Skarhed
2020-06-23 16:17:54 +02:00
committed by GitHub
parent 1bde4de827
commit f5de4f1fb1
10 changed files with 348 additions and 181 deletions

View File

@@ -438,14 +438,28 @@ export function setupAngularRoutes($routeProvider: route.IRouteProvider, $locati
},
})
.when('/user/password/send-reset-email', {
templateUrl: 'public/app/partials/reset_password.html',
controller: 'ResetPasswordCtrl',
//@ts-ignore
template: '<react-container />',
resolve: {
component: () =>
SafeDynamicImport(
import(
/* webpackChunkName: "SendResetMailPage" */ 'app/core/components/ForgottenPassword/SendResetMailPage'
)
),
},
// @ts-ignore
pageClass: 'sidemenu-hidden',
})
.when('/user/password/reset', {
templateUrl: 'public/app/partials/reset_password.html',
controller: 'ResetPasswordCtrl',
template: '<react-container />',
resolve: {
component: () =>
SafeDynamicImport(
import(
/* webpackChunkName: "ChangePasswordPage" */ 'app/core/components/ForgottenPassword/ChangePasswordPage'
)
),
},
//@ts-ignore
pageClass: 'sidemenu-hidden',
})