mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-17 22:03:44 +02:00
Update repository base code to be cleaner and make use of PHP 7 features
This commit is contained in:
@@ -54,7 +54,7 @@ class DisableTwoFactorCommand extends Command
|
||||
}
|
||||
|
||||
$email = $this->option('email') ?? $this->ask(trans('command/messages.user.ask_email'));
|
||||
$user = $this->repository->withColumns(['id', 'email'])->findFirstWhere([['email', '=', $email]]);
|
||||
$user = $this->repository->setColumns(['id', 'email'])->findFirstWhere([['email', '=', $email]]);
|
||||
|
||||
$this->repository->withoutFresh()->update($user->id, [
|
||||
'use_totp' => false,
|
||||
|
||||
Reference in New Issue
Block a user