public function reset(array $creds)
{
try {
if ($this->validator->with($creds)->passes()) {
$this->users->resetPassword($creds['code'], $creds['password']);
return true;
}
} catch (UserNotFoundException $e) {
$this->validator->add('UserNotFoundException', $e->getMessage());
}
return false;
}