mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-07-28 00:09:56 -07:00
Combination of initial files and some new code for login and user registration.
This commit is contained in:
+24
-14
@@ -5,22 +5,32 @@ use Illuminate\Auth\UserInterface;
|
||||
use Illuminate\Auth\Reminders\RemindableTrait;
|
||||
use Illuminate\Auth\Reminders\RemindableInterface;
|
||||
|
||||
class User extends Eloquent implements UserInterface, RemindableInterface {
|
||||
class User extends Elegant implements UserInterface, RemindableInterface
|
||||
{
|
||||
|
||||
use UserTrait, RemindableTrait;
|
||||
use UserTrait, RemindableTrait;
|
||||
|
||||
/**
|
||||
* The database table used by the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'users';
|
||||
|
||||
/**
|
||||
* The attributes excluded from the model's JSON form.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $hidden = array('password', 'remember_token');
|
||||
/**
|
||||
* The database table used by the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'users';
|
||||
|
||||
public static $rules
|
||||
= [
|
||||
'email' => 'email|unique:users,email',
|
||||
'migrated' => 'numeric|between:0,1',
|
||||
'password' => 'between:60,60',
|
||||
'verification' => 'between:32,32',
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes excluded from the model's JSON form.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $hidden = array('password', 'remember_token');
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user