diff --git a/inc/auth.php b/inc/auth.php
index 50c5f17ed82886ccb19d1e6126dc7868a828d00a..c18104487ccdcc510f0e50c835bd37e79321605d 100644
--- a/inc/auth.php
+++ b/inc/auth.php
@@ -90,13 +90,7 @@ if($conf['useacl']){
                     'sticky'   => $_REQUEST['r'],
                     'silent'   => $_REQUEST['http_credentials'],
                     );
-            $evt = new Doku_Event('AUTH_LOGIN_CHECK',$evdata);
-            if($evt->advise_before()){
-                auth_login($evdata['user'],
-                           $evdata['password'],
-                           $evdata['sticky'],
-                           $evdata['silent']);
-            }
+            trigger_event('AUTH_LOGIN_CHECK', $evdata, 'auth_login_wrapper');
         }
     }
 
@@ -114,6 +108,13 @@ if($conf['useacl']){
     }
 }
 
+function auth_login_wrapper($evdata) {
+    return auth_login($evdata['user'],
+                      $evdata['password'],
+                      $evdata['sticky'],
+                      $evdata['silent']);
+}
+
 /**
  * This tries to login the user based on the sent auth credentials
  *