We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5837719 commit 905d687Copy full SHA for 905d687
app/Http/Controllers/UserController.php
@@ -156,7 +156,8 @@ public function confirmEmailToken($token)
156
$user->email_active = true;
157
$user->email_token = str_random(20);
158
$user->save();
159
- return redirect()->route('login')->with('success', '账号激活成功');
+ \Auth::login($user);
160
+ return redirect()->route('home')->with('success', '账号激活成功');
161
}
162
163
0 commit comments