summaryrefslogtreecommitdiffstats
path: root/lib/private/Authentication/Token/DefaultToken.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-05-15 21:10:43 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-05-16 19:27:19 +0200
commitaba255997aa82981c6b1fa3ce5e32bc0077156d1 (patch)
tree80245f04d3f7b400723ca4c3fd55b90ecedcb8cc /lib/private/Authentication/Token/DefaultToken.php
parent0011bfb64bedbfa412ffd2190433fe0b51830ce9 (diff)
downloadnextcloud-server-aba255997aa82981c6b1fa3ce5e32bc0077156d1.tar.gz
nextcloud-server-aba255997aa82981c6b1fa3ce5e32bc0077156d1.zip
Allow the rotation of tokens
This for example will allow rotating the apptoken for oauth Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Authentication/Token/DefaultToken.php')
-rw-r--r--lib/private/Authentication/Token/DefaultToken.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/private/Authentication/Token/DefaultToken.php b/lib/private/Authentication/Token/DefaultToken.php
index e2753ba979c..993dc7580ce 100644
--- a/lib/private/Authentication/Token/DefaultToken.php
+++ b/lib/private/Authentication/Token/DefaultToken.php
@@ -30,9 +30,7 @@ use OCP\AppFramework\Db\Entity;
* @method void setId(int $id)
* @method void setUid(string $uid);
* @method void setLoginName(string $loginname)
- * @method void setPassword(string $password)
* @method void setName(string $name)
- * @method void setToken(string $token)
* @method string getToken()
* @method void setType(int $type)
* @method int getType()
@@ -173,4 +171,12 @@ class DefaultToken extends Entity implements IToken {
public function getRemember(): int {
return parent::getRemember();
}
+
+ public function setToken(string $token) {
+ parent::setToken($token);
+ }
+
+ public function setPassword(string $password = null) {
+ parent::setPassword($password);
+ }
}