Skip to content

Commit f150101

Browse files
author
Pascal Baljet
committed
'login_remember' config setting
1 parent 7630654 commit f150101

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ All notable changes to `laravel-user-email` will be documented in this file
55
## 1.0.7 - 2020-01-08
66

77
- support for custom model
8+
- setting to remember login
89

910
## 1.0.6 - 2020-01-06
1011

config/config.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
*/
1717
'login_after_verification' => true,
1818

19+
/**
20+
* Should the user be permanently "remembered" by the application.
21+
*/
22+
'login_remember' => false,
23+
1924
/**
2025
* Model class that will be used to store and retrieve the tokens.
2126
*/

src/Http/VerifiesPendingEmails.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function verify(string $token)
2424
})->user;
2525

2626
if (config('verify-new-email.login_after_verification')) {
27-
Auth::guard()->login($user);
27+
Auth::guard()->login($user, config('verify-new-email.login_remember'));
2828
}
2929

3030
return redirect(config('verify-new-email.redirect_to'))->with('verified', true);

0 commit comments

Comments
 (0)