diff options
author | Christoph Wurst <christoph@owncloud.com> | 2016-06-17 13:59:15 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@owncloud.com> | 2016-06-17 15:42:28 +0200 |
commit | 0c0a216f42bb004380efca1fd665711f938579d9 (patch) | |
tree | 341a9fbf2d7cc9b155bf99498150400073574093 /lib/private/Authentication/Token/IToken.php | |
parent | c4149c59c2cfe83b5e4cd2b20b8ad4caf2341ca9 (diff) | |
download | nextcloud-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.php | 14 |
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); } |