public function reset(User $user)
 {
     $newPassword = $this->generatePassword();
     $user->password = $newPassword;
     $user->save();
     $this->smsGateway->send($user->telephone, $this->getMessage($newPassword));
 }
Example #2
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     $telephone = $this->argument('telephone');
     $message = $this->argument('message');
     $this->SMSGateway->send($telephone, $message);
 }