mirror of
https://github.com/flarum/framework.git
synced 2025-02-01 02:34:00 +08:00
Clean up unused code
This commit is contained in:
parent
7120ba2050
commit
76ea6f3695
7
js/forum/dist/app.js
vendored
7
js/forum/dist/app.js
vendored
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user