Cleaning up.

This commit is contained in:
James Cole
2015-04-28 15:26:30 +02:00
parent 0683c87e52
commit db4adf399d
15 changed files with 75 additions and 47 deletions

View File

@@ -49,7 +49,8 @@ class ProfileController extends Controller
/**
*
*/
public function postDeleteAccount(DeleteAccountFormRequest $request) {
public function postDeleteAccount(DeleteAccountFormRequest $request)
{
// old, new1, new2
if (!Hash::check($request->get('password'), Auth::user()->password)) {
Session::flash('error', 'Invalid password!');
@@ -60,11 +61,11 @@ class ProfileController extends Controller
// DELETE!
Auth::user()->delete();
Session::flush();
return Redirect::route('index');
}
/**
* @return \Illuminate\Http\RedirectResponse|\Illuminate\View\View
*/