install firebase jwt and use token for authenticate
This commit is contained in:
@@ -8,15 +8,13 @@ class DabestanihaAuthenticateRequest extends BaseFormRequest
|
||||
public function shouldContinue(): bool
|
||||
{
|
||||
$path = $this->getRoutePath();
|
||||
return trim($path, '/') === 'dabestaniha/login';
|
||||
return trim($path, '/') === get_configured_option('login-route');
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'token' => ['required'],
|
||||
'name' => ['nullable'],
|
||||
'email' => ['nullable'],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user