aboutsummaryrefslogtreecommitdiff
path: root/src/CamilStaps/BotleaguesApi/User.php
diff options
context:
space:
mode:
authorCamil Staps2015-05-14 11:18:12 +0200
committerCamil Staps2015-05-14 11:18:12 +0200
commita012ea9e7d5dd0baadb549e1460a8339224f37a5 (patch)
treea74414754eb8d00d21d92d1ca5be274235ac8e52 /src/CamilStaps/BotleaguesApi/User.php
parentPassword reminders start (diff)
Own Model class; new namespaces Database and Controllers; RFC2822 dates
Diffstat (limited to 'src/CamilStaps/BotleaguesApi/User.php')
-rw-r--r--src/CamilStaps/BotleaguesApi/User.php76
1 files changed, 0 insertions, 76 deletions
diff --git a/src/CamilStaps/BotleaguesApi/User.php b/src/CamilStaps/BotleaguesApi/User.php
deleted file mode 100644
index 560f737..0000000
--- a/src/CamilStaps/BotleaguesApi/User.php
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-namespace CamilStaps\BotleaguesApi;
-
-use Illuminate\Auth\Reminders\RemindableInterface;
-use Illuminate\Auth\UserInterface;
-use Illuminate\Database\Eloquent\Model;
-
-class User extends Model implements UserInterface, RemindableInterface {
-
- protected $table = 'users';
- protected $hidden = ['password', 'remember_token', 'api_key'];
- protected $fillable = ['email', 'password'];
-
- public function isAdministrator() {
- return (bool) $this->isAdministrator;
- }
-
- public function validToken($token) {
- return UserToken::where('userId', $this->id)->where('token', $token)->where('valid_till', '>', date("Y-m-d H:i:s"))->count() > 0;
- }
-
- /**
- * Get the unique identifier for the user.
- *
- * @return mixed
- */
- public function getAuthIdentifier() {
- return $this->getKey();
- }
-
- /**
- * Get the password for the user.
- * @todo not implemented yet
- * @return string
- */
- public function getAuthPassword() {
- return $this->password;
- }
-
- /**
- * Get the token value for the "remember me" session.
- * @todo not implemented yet
- * @return string
- */
- public function getRememberToken() {
- return null;
- }
-
- /**
- * Set the token value for the "remember me" session.
- * @todo not implemented yet
- * @param string $value
- * @return void
- */
- public function setRememberToken($value) {
- return null;
- }
-
- /**
- * Get the column name for the "remember me" token.
- * @todo not implemented yet
- * @return string
- */
- public function getRememberTokenName() {
- return null;
- }
-
- /**
- * Get the e-mail address where password reminders are sent.
- *
- * @return string
- */
- public function getReminderEmail() {
- return $this->email;
- }
-} \ No newline at end of file