[Standards] Updated Codebase to reflect new coding standards. See CONTRIBUTING.md for standards.

This commit is contained in:
Thomas Coleman
2014-11-27 16:05:00 +00:00
parent f662352f66
commit 107a4c2a6e
30 changed files with 646 additions and 606 deletions
+21 -19
View File
@@ -1,24 +1,26 @@
<?php
/**
* Logs users into their account
*/
class AuthController extends Controller {
public function showLogin() {
return View::make('auth.login');
}
namespace CachetHQ\Cachet\Controllers;
public function postLogin() {
if (Auth::attempt(Input::only(['email', 'password']))) {
return Redirect::intended('dashboard');
} else {
return Redirect::back()->withInput(Input::except('password'))->with('error', 'Invalid email or password');
}
}
/**
* Logs users into their account
*/
class AuthController extends Controller {
public function showLogin() {
return View::make('auth.login');
}
public function logoutAction() {
Auth::logout();
public function postLogin() {
if (Auth::attempt(Input::only(['email', 'password']))) {
return Redirect::intended('dashboard');
} else {
return Redirect::back()->withInput(Input::except('password'))->with('error', 'Invalid email or password');
}
}
return Redirect::to('/');
}
}
public function logoutAction() {
Auth::logout();
return Redirect::to('/');
}
}