Fixed tests.

This commit is contained in:
James Cole
2015-06-21 16:10:32 +02:00
parent ad8a9717d1
commit 780d137b76
3 changed files with 6 additions and 123 deletions

View File

@@ -56,13 +56,13 @@ class ProfileController extends Controller
if (!Hash::check($request->get('current_password'), Auth::user()->password)) {
Session::flash('error', 'Invalid current password!');
return Redirect::route('change-password');
return Redirect::route('profile.change-password');
}
$result = $this->validatePassword($request->get('current_password'), $request->get('new_password'));
if (!($result === true)) {
Session::flash('error', $result);
return Redirect::route('change-password');
return Redirect::route('profile.change-password');
}
// update the user with the new password.
@@ -103,7 +103,7 @@ class ProfileController extends Controller
if (!Hash::check($request->get('password'), Auth::user()->password)) {
Session::flash('error', 'Invalid password!');
return Redirect::route('delete-account');
return Redirect::route('profile.delete-account');
}
// DELETE!