Removed direct references to and
This commit is contained in:
@@ -111,7 +111,7 @@ abstract class lnApp_Controller_Login extends Controller_TemplateDefault {
|
||||
if (Auth::instance()->logged_in())
|
||||
HTTP::redirect(URL::link('user','welcome/index'));
|
||||
|
||||
// If there is a post and $_POST is not empty
|
||||
// If there is a post
|
||||
if ($this->request->post()) {
|
||||
// If the post data validates using the rules setup in the user model
|
||||
if (Auth::instance()->login($this->request->post('username'),$this->request->post('password'))) {
|
||||
|
@@ -21,7 +21,7 @@ abstract class lnApp_Controller_User_Account extends Controller_Account {
|
||||
* Enable User to Edit their Account Details
|
||||
*/
|
||||
public function action_edit() {
|
||||
if ($_POST AND $this->ao->values($_POST)->changed() AND (! $this->save($this->ao)))
|
||||
if ($this->request->post() AND $this->ao->values($this->request->post())->changed() AND (! $this->save($this->ao)))
|
||||
$this->ao->reload();
|
||||
|
||||
Block::factory()
|
||||
|
Reference in New Issue
Block a user