Skip to content

Commit 905d687

Browse files
committed
修复bug:邮箱验证通过后,自动登录系统
1 parent 5837719 commit 905d687

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Http/Controllers/UserController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ public function confirmEmailToken($token)
156156
$user->email_active = true;
157157
$user->email_token = str_random(20);
158158
$user->save();
159-
return redirect()->route('login')->with('success', '账号激活成功');
159+
\Auth::login($user);
160+
return redirect()->route('home')->with('success', '账号激活成功');
160161
}
161162
}
162163

0 commit comments

Comments
 (0)