Browse Source

implement remindable interface on default user.

Taylor Otwell 11 years ago
parent
commit
af4381f7de
1 changed files with 12 additions and 1 deletions
  1. 12 1
      app/models/User.php

+ 12 - 1
app/models/User.php

@@ -1,8 +1,9 @@
 <?php
 <?php
 
 
 use Illuminate\Auth\UserInterface;
 use Illuminate\Auth\UserInterface;
+use Illuminate\Auth\RemindableInterface;
 
 
-class User extends Eloquent implements UserInterface {
+class User extends Eloquent implements UserInterface, RemindableInterface {
 
 
 	/**
 	/**
 	 * The database table used by the model.
 	 * The database table used by the model.
@@ -38,4 +39,14 @@ class User extends Eloquent implements UserInterface {
 		return $this->password;
 		return $this->password;
 	}
 	}
 
 
+	/**
+	 * Get the e-mail address where password reminders are sent.
+	 *
+	 * @return string
+	 */
+	public function getReminderEmail()
+	{
+		return $this->email;
+	}
+
 }
 }