From 893d8e20bb3dda72c240bdaa255bfd1504b15163 Mon Sep 17 00:00:00 2001 From: Nelson LaQuet Date: Thu, 30 Apr 2015 01:50:15 -0500 Subject: [PATCH] Fixed poniverse authentication. Now uses live API. --- .../2015_04_30_064436_add_remember_me_field.php | 17 +++++++++++++++++ app/models/Entities/User.php | 9 +++------ 2 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 app/database/migrations/2015_04_30_064436_add_remember_me_field.php diff --git a/app/database/migrations/2015_04_30_064436_add_remember_me_field.php b/app/database/migrations/2015_04_30_064436_add_remember_me_field.php new file mode 100644 index 00000000..1e400d3b --- /dev/null +++ b/app/database/migrations/2015_04_30_064436_add_remember_me_field.php @@ -0,0 +1,17 @@ +string('remember_token', 100)->nullable()->indexed(); + }); + } + + public function down() { + Schema::table('users', function($table) { + $table->dropColumn('remember_token'); + }); + } +} \ No newline at end of file diff --git a/app/models/Entities/User.php b/app/models/Entities/User.php index 4d975939..3d656dda 100644 --- a/app/models/Entities/User.php +++ b/app/models/Entities/User.php @@ -87,7 +87,7 @@ * @return string */ public function getRememberToken() { - // TODO: Implement getRememberToken() method. + return $this->remember_token; } /** @@ -97,7 +97,7 @@ * @return void */ public function setRememberToken($value) { - // TODO: Implement setRememberToken() method. + $this->remember_token = $value; } /** @@ -106,9 +106,6 @@ * @return string */ public function getRememberTokenName() { - return "nothing"; - } - - public function setNothingAttribute($nothing) { + return "remember_token"; } } \ No newline at end of file