mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
First tests for User model.
This commit is contained in:
@@ -22,7 +22,7 @@ class User extends Elegant implements UserInterface, RemindableInterface
|
||||
= [
|
||||
'email' => 'required|email|unique:users,email',
|
||||
'migrated' => 'required|numeric|between:0,1',
|
||||
'password' => 'between:60,60',
|
||||
'password' => 'required|between:60,60',
|
||||
'verification' => 'between:32,32',
|
||||
];
|
||||
|
||||
@@ -31,10 +31,10 @@ class User extends Elegant implements UserInterface, RemindableInterface
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $hidden = array('password', 'remember_token');
|
||||
protected $hidden = array('remember_token');
|
||||
|
||||
public function accounts() {
|
||||
return $this->hasMany('Account');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user