From ddfa019356213ee7eff59ba321f45bffe8203dcb Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Sat, 6 May 2023 08:37:28 +0200 Subject: [PATCH] add some documentation --- views/bootstrap/class.SetupWebauthn.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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'];