Commit 10cdd71c authored by Viral Solani's avatar Viral Solani Committed by StyleCI Bot

Apply fixes from StyleCI

parent 76e0b3a5
...@@ -59,12 +59,12 @@ class AuthController extends APIController ...@@ -59,12 +59,12 @@ class AuthController extends APIController
JWTAuth::parseToken()->authenticate(); JWTAuth::parseToken()->authenticate();
} catch (JWTException $e) { } catch (JWTException $e) {
return $this->respond([ return $this->respond([
'authenticated' => false 'authenticated' => false,
]); ]);
} }
return $this->respond([ return $this->respond([
'authenticated' => true 'authenticated' => true,
]); ]);
} }
...@@ -136,7 +136,7 @@ class AuthController extends APIController ...@@ -136,7 +136,7 @@ class AuthController extends APIController
} }
/** /**
* Activate User * Activate User.
* *
* @param $activation_token [description] * @param $activation_token [description]
* *
...@@ -154,13 +154,13 @@ class AuthController extends APIController ...@@ -154,13 +154,13 @@ class AuthController extends APIController
return $this->throwValidation('Your account has already been activated!'); return $this->throwValidation('Your account has already been activated!');
} }
$user->confirmed = 1; $user->confirmed = 1;
$user->status = 1; $user->status = 1;
$user->save(); $user->save();
$user->notify(new Activated($user)); $user->notify(new Activated($user));
return $this->respond([ return $this->respond([
'message' => 'Your account has been activated!' 'message' => 'Your account has been activated!',
]); ]);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment