diff --git a/js/forum/dist/app.js b/js/forum/dist/app.js index a7ad0c813..e58fb842f 100644 --- a/js/forum/dist/app.js +++ b/js/forum/dist/app.js @@ -23063,12 +23063,7 @@ System.register('flarum/components/LogInModal', ['flarum/components/Modal', 'fla key: 'onerror', value: function onerror(error) { if (error.status === 401) { - if (error.response.emailConfirmationRequired) { - error.alert.props.children = app.translator.trans('core.forum.log_in.confirmation_required_message', { email: error.response.emailConfirmationRequired }); - delete error.alert.props.type; - } else { - error.alert.props.children = app.translator.trans('core.forum.log_in.invalid_login_message'); - } + error.alert.props.children = app.translator.trans('core.forum.log_in.invalid_login_message'); } babelHelpers.get(Object.getPrototypeOf(LogInModal.prototype), 'onerror', this).call(this, error); diff --git a/js/forum/src/components/LogInModal.js b/js/forum/src/components/LogInModal.js index 691012cae..b5fd805a1 100644 --- a/js/forum/src/components/LogInModal.js +++ b/js/forum/src/components/LogInModal.js @@ -130,12 +130,7 @@ export default class LogInModal extends Modal { onerror(error) { if (error.status === 401) { - if (error.response.emailConfirmationRequired) { - error.alert.props.children = app.translator.trans('core.forum.log_in.confirmation_required_message', {email: error.response.emailConfirmationRequired}); - delete error.alert.props.type; - } else { - error.alert.props.children = app.translator.trans('core.forum.log_in.invalid_login_message'); - } + error.alert.props.children = app.translator.trans('core.forum.log_in.invalid_login_message'); } super.onerror(error);