aboutsummaryrefslogtreecommitdiff
path: root/src/controllers/UserController.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/controllers/UserController.php')
-rw-r--r--src/controllers/UserController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/controllers/UserController.php b/src/controllers/UserController.php
index a64ed71..6af3fe8 100644
--- a/src/controllers/UserController.php
+++ b/src/controllers/UserController.php
@@ -2,6 +2,7 @@
namespace CamilStaps\BotleaguesApi\Controllers;
use CamilStaps\BotleaguesApi\Database\User;
+use CamilStaps\BotleaguesApi\Exception\ValidationException;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Input;
@@ -46,7 +47,7 @@ class UserController extends BaseController {
$payload = Input::only('email', 'password');
$validator = Validator::make($payload, $rules);
if ($validator->fails()) {
- throw new Exception\ValidationException('Could not create new user.', $validator->errors());
+ throw new ValidationException('Could not create new user.', $validator->errors());
}
$this->user->email = Input::get('email');