if (user.getAccountStatus() != STATUSES.ACTIVE)
throw new OSecurityAccessException(this.getName(), "User '" + iUserName + "' is not active");
registerHook(new OUserTrigger());
registerHook(new OPropertyIndexManager());
if (getStorage() instanceof OStorageEmbedded) {
if (!user.checkPassword(iUserPassword)) {
// WAIT A BIT TO AVOID BRUTE FORCE