implement GRIDs
This commit is contained in:
+5
-1
@@ -62,7 +62,7 @@ class User extends BaseModel implements
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'name', 'title', 'email', 'password', 'bio', 'website'
|
||||
'name', 'title', 'email', 'password', 'bio', 'website', 'confirmed'
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -183,6 +183,10 @@ class User extends BaseModel implements
|
||||
}
|
||||
else {
|
||||
$u = static::where('email', $ident)->first();
|
||||
|
||||
if (!$u) {
|
||||
$u = static::where('name', $ident)->first();
|
||||
}
|
||||
}
|
||||
|
||||
if (!$u) throw new NotExistException("No user found matching \"$ident\"");
|
||||
|
||||
Reference in New Issue
Block a user