mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-14 04:13:46 +02:00
Show success message to the user
This commit is contained in:
@@ -33,13 +33,12 @@ class ForgotPasswordContainer extends React.PureComponent<Props, State> {
|
||||
this.setState({ isSubmitting: true }, () => {
|
||||
this.props.clearAllFlashMessages();
|
||||
requestPasswordResetEmail(this.state.email)
|
||||
.then(() => {
|
||||
// @todo actually handle this.
|
||||
})
|
||||
.then(response => this.props.pushFlashMessage({
|
||||
type: 'success', title: 'Success', message: response,
|
||||
}))
|
||||
.catch(error => {
|
||||
console.error(error);
|
||||
this.props.pushFlashMessage({
|
||||
id: 'auth:forgot-password',
|
||||
type: 'error',
|
||||
title: 'Error',
|
||||
message: httpErrorToHuman(error),
|
||||
|
||||
Reference in New Issue
Block a user