Skip to content

Commit

Permalink
Merge pull request #212 from jadjoubran/analysis-XVrkLg
Browse files Browse the repository at this point in the history
Applied fixes from StyleCI
  • Loading branch information
jadjoubran committed Mar 22, 2016
2 parents bb29dd8 + b9b9a73 commit 39b0c35
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/Http/Controllers/Auth/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function postLogin(Request $request)

try {
// verify the credentials and create a token for the user
if (!$token = JWTAuth::attempt($credentials)) {
if (! $token = JWTAuth::attempt($credentials)) {
return response()->error('Invalid credentials', Response::HTTP_UNAUTHORIZED);
}
} catch (\JWTException $e) {
Expand All @@ -32,10 +32,10 @@ public function postRegister()
'password' => 'required|min:8',
]);

$user = new User;
$user->name = trim($request->name);
$user->email = trim(strtolower($request->email));
$user->password = bcrypt($request->password);
$user = new User;
$user->name = trim($request->name);
$user->email = trim(strtolower($request->email));
$user->password = bcrypt($request->password);
$user->save();

$token = JWTAuth::fromUser($user);
Expand Down

0 comments on commit 39b0c35

Please sign in to comment.