From d46c05b12b9dcd65d2d9cd230bf45b5bdf6fa8bd Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Thu, 22 Nov 2018 00:09:55 +0100 Subject: linkfrom analyse --- app/class/modeluser.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'app/class/modeluser.php') diff --git a/app/class/modeluser.php b/app/class/modeluser.php index 899d1cc..1644a35 100644 --- a/app/class/modeluser.php +++ b/app/class/modeluser.php @@ -39,13 +39,23 @@ class Modeluser extends Model return $level = self::READ; } elseif (strip_tags($pass) == Config::editor()) { return $level = self::EDITOR; - } elseif (strip_tags($pass) == Config::invite()) { + } elseif ($this->invitetest(strip_tags($pass))) { return $level = self::INVITE; } else { return $level = self::FREE; } } + public function invitetest() + { + $invitepasslist = []; + if(in_array($pass, $invitepasslist)) { + return true; + } else { + return false; + } + } + public function logout() { $user = new User(['level' => self::FREE]); -- cgit v1.2.3