File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to ` laravel-user-email ` will be documented in this file
4
4
5
+ ## 1.0.5 - 2020-01-05
6
+
7
+ - refactoring
8
+
5
9
## 1.0.4 - 2020-01-05
6
10
7
11
- publishes the migration only once
Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ trait MustVerifyNewEmail
18
18
*/
19
19
public function newEmail (string $ email ):?PendingUserEmail
20
20
{
21
- $ this ->clearPendingEmail ();
22
-
23
21
if ($ this ->getEmailForVerification () === $ email && $ this ->hasVerifiedEmail ()) {
24
22
return null ;
25
23
}
@@ -37,6 +35,8 @@ public function newEmail(string $email):?PendingUserEmail
37
35
*/
38
36
public function createPendingUserEmailModel (string $ email ): PendingUserEmail
39
37
{
38
+ $ this ->clearPendingEmail ();
39
+
40
40
return PendingUserEmail::create ([
41
41
'user_type ' => get_class ($ this ),
42
42
'user_id ' => $ this ->getKey (),
You can’t perform that action at this time.
0 commit comments