diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/users.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp index 1b06461ed..fe947d89a 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -443,8 +443,10 @@ bool User::IsServicesOper() else if (!this->nc->o->certfp.empty() && this->fingerprint != this->nc->o->certfp) // Certfp mismatch return false; - else if (!this->nc->o->password.empty() && !this->GetExt("os_login_password_correct")) - // Not identified + + EventReturn MOD_RESULT; + FOREACH_RESULT(I_IsServicesOper, IsServicesOper(this)); + if (MOD_RESULT == EVENT_STOP) return false; return true; |