diff --git a/views/bootstrap/class.SetupWebauthn.php b/views/bootstrap/class.SetupWebauthn.php index 1e83938b9..d5055fc24 100644 --- a/views/bootstrap/class.SetupWebauthn.php +++ b/views/bootstrap/class.SetupWebauthn.php @@ -327,6 +327,11 @@ function webauthnAuthenticate(key, cb){ echo json_encode($j); } /* }}} */ + /** + * Return challange for login process + * + * This method is quite similar to the one in controllers/class.Login.php + */ function preparelogin() { /* {{{ */ $dms = $this->params['dms']; $user = $this->params['user']; @@ -338,6 +343,11 @@ function webauthnAuthenticate(key, cb){ echo json_encode($j); } /* }}} */ + /** + * Do a fake login to check if authentication works + * + * This method is quite similar to the one in controllers/class.Login.php + */ function login() { /* {{{ */ $dms = $this->params['dms']; $user = $this->params['user'];