FIX: fix login
Login should work again. Problem was in non-setting sessions. This was resolved by adding middleware "web" to admin group. Thanks to great documentation for NOT MENTIONING this pitfall!
This commit is contained in:
+2
-18
@@ -13,7 +13,7 @@ use Illuminate\Foundation\Auth\Access\Authorizable;
|
||||
*/
|
||||
class User extends Model implements AuthenticableInterface
|
||||
{
|
||||
use Authenticatable, Authorizable, CanResetPassword;
|
||||
use Authenticatable, Authorizable;
|
||||
|
||||
public $timestamps = false;
|
||||
protected $fillable = [
|
||||
@@ -39,20 +39,4 @@ class User extends Model implements AuthenticableInterface
|
||||
const ROLE_VISITOR = 'visitor';
|
||||
const ROLE_EDITOR = 'editor';
|
||||
const ROLE_ADMIN = 'admin';
|
||||
|
||||
/**
|
||||
* Validation method for input data
|
||||
*
|
||||
* @param array $data
|
||||
*
|
||||
* @throws ValidationException
|
||||
*/
|
||||
public static function validate(array $data)
|
||||
{
|
||||
$valid = true;
|
||||
|
||||
if (!$valid) {
|
||||
throw new ValidationException(Validator::class, 'Invalid request');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user