summaryrefslogtreecommitdiff
path: root/core/classes/authentication
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-03-30 05:03:23 +0300
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-03-30 05:03:23 +0300
commit4f2d900af7636e6744ae14aeeefdf2d6080ac50a (patch)
tree1f80775437510591656e6ef13375516226ed27f3 /core/classes/authentication
parenta16d070c4f8301a8b68220aca6d3573705be9025 (diff)
downloadclassroom-4f2d900af7636e6744ae14aeeefdf2d6080ac50a.tar.gz
classroom-4f2d900af7636e6744ae14aeeefdf2d6080ac50a.tar.bz2
classroom-4f2d900af7636e6744ae14aeeefdf2d6080ac50a.zip
several mail options tested; mailhog (fake) mailer is working
Diffstat (limited to 'core/classes/authentication')
-rw-r--r--core/classes/authentication/Core/UserManager.php1
-rw-r--r--core/classes/authentication/User.php18
2 files changed, 1 insertions, 18 deletions
diff --git a/core/classes/authentication/Core/UserManager.php b/core/classes/authentication/Core/UserManager.php
index a3c1cd5..54cd2cb 100644
--- a/core/classes/authentication/Core/UserManager.php
+++ b/core/classes/authentication/Core/UserManager.php
@@ -76,6 +76,7 @@ class UserManager implements UserManagerInterface
/** createUserToken()
* == serializes user and stores it into session
+ * so $_SESSION[DEFAULT_PREFIX_KEY] has the serialized representaion of user
*/
public function createUserToken(UserInterface $user): UserTokenInterface
{
diff --git a/core/classes/authentication/User.php b/core/classes/authentication/User.php
index 06f0ddb..babc7fd 100644
--- a/core/classes/authentication/User.php
+++ b/core/classes/authentication/User.php
@@ -56,14 +56,6 @@ class User implements UserInterface
return $this->roles;
}
- /** getPrivileges
- * @return array
- */
- public function getPrivileges(): array
- {
- return $this->privileges;
- }
-
/** isEnabled
* @return bool
*/
@@ -110,16 +102,6 @@ class User implements UserInterface
return $this;
}
- /** setPrivileges()
- *
- * @param array $roles
- * @return User
- */
- public function setPrivileges(array $privileges): self
- {
- $this->privileges = $privileges;
- return $this;
- }
/** setEnabled
*