Skip to content

Commit 5b903df

Browse files
authored
Merge pull request jeremykenedy#141 from rubendahl/unverified-users-created-by-admin-have-no-activations-quickfix
Users created by admin and left as unverified have no activations to show.
2 parents f60322c + 32c9c1a commit 5b903df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/Auth/ActivateController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function activationRequired()
123123

124124
$data = [
125125
'email' => $user->email,
126-
'date' => $lastActivation->created_at->format('m/d/Y'), //
126+
'date' => $lastActivation ? $lastActivation->created_at->format('m/d/Y') : null, //
127127
];
128128

129129
return view($this->getActivationView())->with($data);

0 commit comments

Comments
 (0)