diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-09-20 12:45:56 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-09-20 14:32:43 +0200 |
commit | ac73ce1b2a9cbcafce29d9f6be768b0629f68ddb (patch) | |
tree | 4195b9010cbfa9b01fa71001c8df8a75ec77ebbb /lib/public/iusersession.php | |
parent | 69c28400b47a3a16ead6fc0d5ee5e2212d0d8ab0 (diff) | |
download | nextcloud-server-ac73ce1b2a9cbcafce29d9f6be768b0629f68ddb.tar.gz nextcloud-server-ac73ce1b2a9cbcafce29d9f6be768b0629f68ddb.zip |
Add UserSession to server container
Diffstat (limited to 'lib/public/iusersession.php')
-rw-r--r-- | lib/public/iusersession.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/public/iusersession.php b/lib/public/iusersession.php new file mode 100644 index 00000000000..5dc1ecf71e6 --- /dev/null +++ b/lib/public/iusersession.php @@ -0,0 +1,30 @@ +<?php +/** + * Copyright (c) 2013 Bart Visscher <bartv@thisnet.nl> + * This file is licensed under the Affero General Public License version 3 or + * later. + * See the COPYING-README file. + * + */ + +namespace OCP; + +/** + * User session + */ +interface IUserSession { + /** + * Do a user login + * @param string $user the username + * @param string $password the password + * @return bool true if successful + */ + public function login($user, $password); + + /** + * @brief Logs the user out including all the session data + * Logout, destroys session + */ + public function logout(); + +} |