mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
@@ -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',
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user