removed debug logs
This commit is contained in:
parent
8167c3a3e7
commit
efe979768c
3 changed files with 0 additions and 13 deletions
|
|
@ -29,12 +29,8 @@ class PasswordReset extends Component
|
|||
#[Layout('components.layouts.auth')]
|
||||
public function resetPassword()
|
||||
{
|
||||
logger()->info("Validating password reset...");
|
||||
logger()->info($this->form);
|
||||
$validated = $this->form->validate();
|
||||
|
||||
logger()->info("Validated password reset", $validated);
|
||||
|
||||
$status = Password::reset(array_merge($validated, ['token' => $this->token]),
|
||||
function (User $user, string $password) {
|
||||
$user->forceFill([
|
||||
|
|
@ -47,7 +43,6 @@ class PasswordReset extends Component
|
|||
return redirect()->route('login');
|
||||
}
|
||||
|
||||
logger()->error("Password reset failed", $status);
|
||||
$this->addError('email', 'The provided credentials do not match our records.');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,16 +18,10 @@ class RegisterUser extends Component
|
|||
|
||||
public function register()
|
||||
{
|
||||
logger()->info("Validating...");
|
||||
logger()->info($this->form->toArray());
|
||||
$validated = $this->form->validate();
|
||||
|
||||
logger()->info("Validated", $validated);
|
||||
$user = User::create($this->form->all());
|
||||
UserProfile::create(["user_id" => $user->id]);
|
||||
|
||||
Mail::to($user->email)->send(new PasswordResetNewUser($user));
|
||||
logger()->info("New user registered: " . $user->email);
|
||||
return redirect()->route('login');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue