This commit is contained in:
Graham Campbell
2015-11-07 17:09:09 +00:00
parent 66061d9a8c
commit 5f1f6d3c04
3 changed files with 2 additions and 14 deletions

View File

@@ -40,12 +40,7 @@ class UserController extends Controller
*/
public function postUser()
{
$userData = array_filter(Binput::only([
'username',
'email',
'password',
'google2fa',
]));
$userData = array_filter(Binput::only(['username', 'email', 'password', 'google2fa']));
$enable2FA = (bool) array_pull($userData, 'google2fa');