Skip to content

Commit

Permalink
Merge pull request #260 from jadjoubran/analysis-z3wmAp
Browse files Browse the repository at this point in the history
Applied fixes from StyleCI
  • Loading branch information
jadjoubran committed Apr 17, 2016
2 parents 2d353fd + e34a818 commit b33accf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions app/Http/Controllers/Auth/PasswordResetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function sendResetLinkEmail(Request $request)
$email = $request->email;
$reset = PasswordReset::create([
'email' => $email,
'token' => str_random(10)
'token' => str_random(10),
]);

$token = $reset->token;
Expand All @@ -43,9 +43,10 @@ public function verify(Request $request)
->whereToken($request->token)
->first();

if (!$check) {
if (! $check) {
return response()->error('Email does not exist', 422);
}

return response()->success(true);
}

Expand Down
1 change: 0 additions & 1 deletion app/PasswordReset.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

class PasswordReset extends Model
{

protected $fillable = ['email', 'token'];

public function setUpdatedAtAttribute($value)
Expand Down
1 change: 0 additions & 1 deletion tests/PasswordResetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public function testVerifyTokenUnsuccessfully()
->seeValidationError();
}


public function testResetPasswordWithTokenSuccessfully()
{
$user = factory(App\User::class)->create();
Expand Down

0 comments on commit b33accf

Please sign in to comment.