MAPG-140 refactor user handling to use the PersistentDataManager

This commit is contained in:
bence committed 2020-06-20 02:03:11 +02:00
1 parent d6750777c2
commit a9eec05288
6 files changed
+78 -60

No files matched your search

+4 -4
View File
@@ -4,15 +4,15 @@ use MapGuesser\Interfaces\Authentication\IUser;
class User extends Model implements IUser
{
private static array $types = ['user', 'admin'];
protected static string $table = 'users';
protected static array $fields = ['email', 'password', 'type', 'active'];
private string $email;
private static array $types = ['user', 'admin'];
private string $password;
private string $email = '';
private string $password = '';
private string $type = 'user';