@@ 334-341 (lines=8) @@ | ||
331 | // Get the user information |
|
332 | $user = Sentinel::findById($id); |
|
333 | ||
334 | if ($user == null || $user->last_login != null || $user->status != 0) |
|
335 | { |
|
336 | // Prepare the error message |
|
337 | $error = Lang::get('base.auth.not_found'); |
|
338 | ||
339 | // Redirect to the user management page |
|
340 | return Redirect::route('users.pending')->with('error', $error); |
|
341 | } |
|
342 | ||
343 | $user->status = 1; |
|
344 | ||
@@ 389-396 (lines=8) @@ | ||
386 | // Get the user information |
|
387 | $user = Sentinel::findById($id); |
|
388 | ||
389 | if ($user == null || $user->last_login != null || $user->status != 0) |
|
390 | { |
|
391 | // Prepare the error message |
|
392 | $error = Lang::get('base.auth.not_found'); |
|
393 | ||
394 | // Redirect to the user management page |
|
395 | return Redirect::route('users.pending')->with('error', $error); |
|
396 | } |
|
397 | ||
398 | $user->status = 2; |
|
399 |