Cleanup user edit page and show their pireps; log last IP address #110

This commit is contained in:
Nabeel Shahzad
2018-01-07 15:09:22 -06:00
parent ab7fa3b293
commit 247310b4e7
32 changed files with 131 additions and 56 deletions

View File

@@ -34,6 +34,9 @@ class LoginController extends Controller
{
$user = Auth::user();
$user->last_ip = $request->ip();
$user->save();
// TODO: How to handle ON_LEAVE?
if($user->state !== UserState::ACTIVE) {