summaryrefslogtreecommitdiff
path: root/app/Core/Security/PostAuthenticationProviderInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/Security/PostAuthenticationProviderInterface.php')
-rw-r--r--app/Core/Security/PostAuthenticationProviderInterface.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/Core/Security/PostAuthenticationProviderInterface.php b/app/Core/Security/PostAuthenticationProviderInterface.php
index 88fc2fe5..3f628bb0 100644
--- a/app/Core/Security/PostAuthenticationProviderInterface.php
+++ b/app/Core/Security/PostAuthenticationProviderInterface.php
@@ -11,6 +11,13 @@ namespace Kanboard\Core\Security;
interface PostAuthenticationProviderInterface extends AuthenticationProviderInterface
{
/**
+ * Called only one time before to prompt the user for pin code
+ *
+ * @access public
+ */
+ public function beforeCode();
+
+ /**
* Set user pin-code
*
* @access public
@@ -19,6 +26,14 @@ interface PostAuthenticationProviderInterface extends AuthenticationProviderInte
public function setCode($code);
/**
+ * Generate secret if necessary
+ *
+ * @access public
+ * @return string
+ */
+ public function generateSecret();
+
+ /**
* Set secret token (fetched from user profile)
*
* @access public