mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Remove addHook/runHook system as it is never used
This commit is contained in:
parent
996723a486
commit
d88855ebd9
7 changed files with 1 additions and 128 deletions
|
|
@ -12,8 +12,6 @@ import { convertLangName, triggerAutocompleteInputChange } from 'Common/Utils';
|
|||
|
||||
import { getNotification, getNotificationFromResponse, reload as translatorReload } from 'Common/Translator';
|
||||
|
||||
import * as Plugins from 'Common/Plugins';
|
||||
|
||||
import AppStore from 'Stores/User/App';
|
||||
import LanguageStore from 'Stores/Language';
|
||||
|
||||
|
|
@ -172,23 +170,6 @@ class LoginUserView extends AbstractViewNext {
|
|||
return false;
|
||||
}
|
||||
|
||||
let pluginResultCode = 0,
|
||||
pluginResultMessage = '';
|
||||
|
||||
const fSubmitResult = (iResultCode, sResultMessage) => {
|
||||
pluginResultCode = iResultCode || 0;
|
||||
pluginResultMessage = sResultMessage || '';
|
||||
};
|
||||
|
||||
Plugins.runHook('user-login-submit', [fSubmitResult]);
|
||||
if (0 < pluginResultCode) {
|
||||
this.submitError(getNotification(pluginResultCode));
|
||||
return false;
|
||||
} else if (pluginResultMessage) {
|
||||
this.submitError(pluginResultMessage);
|
||||
return false;
|
||||
}
|
||||
|
||||
this.submitRequest(true);
|
||||
|
||||
const fLoginRequest = (sLoginPassword) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue