aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Authentication/Token/IToken.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@owncloud.com>2016-06-17 13:59:15 +0200
committerChristoph Wurst <christoph@owncloud.com>2016-06-17 15:42:28 +0200
commit0c0a216f42bb004380efca1fd665711f938579d9 (patch)
tree341a9fbf2d7cc9b155bf99498150400073574093 /lib/private/Authentication/Token/IToken.php
parentc4149c59c2cfe83b5e4cd2b20b8ad4caf2341ca9 (diff)
downloadnextcloud-server-0c0a216f42bb004380efca1fd665711f938579d9.tar.gz
nextcloud-server-0c0a216f42bb004380efca1fd665711f938579d9.zip
store last check timestamp in token instead of session
Diffstat (limited to 'lib/private/Authentication/Token/IToken.php')
-rw-r--r--lib/private/Authentication/Token/IToken.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/private/Authentication/Token/IToken.php b/lib/private/Authentication/Token/IToken.php
index a34bdc2c43d..096550fd091 100644
--- a/lib/private/Authentication/Token/IToken.php
+++ b/lib/private/Authentication/Token/IToken.php
@@ -55,4 +55,18 @@ interface IToken extends JsonSerializable {
* @return string
*/
public function getPassword();
+
+ /**
+ * Get the timestamp of the last password check
+ *
+ * @return int
+ */
+ public function getLastCheck();
+
+ /**
+ * Get the timestamp of the last password check
+ *
+ * @param int $time
+ */
+ public function setLastCheck($time);
}