mirror of
https://github.com/flarum/framework.git
synced 2024-12-03 07:33:36 +08:00
Fix array_only usage
This commit is contained in:
parent
4ea7e153a0
commit
f076e1ac6e
|
@ -110,7 +110,7 @@ class AuthenticationResponseFactory
|
|||
['token' => $token->id],
|
||||
// List of the fields that can't be edited during sign up
|
||||
// Only includes attributes on the sign up form, otherwise this could leak private attribute names
|
||||
['identification_fields' => array_only(array_keys($identification), ['username', 'email'])]
|
||||
['identification_fields' => array_keys(array_only($identification, ['username', 'email']))]
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user