Subversion Repositories SmartDukaan

Rev

Rev 15051 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15051 Rev 15070
Line 185... Line 185...
185
			$this->Session->setFlash(__('The agent has been deleted.'));
185
			$this->Session->setFlash(__('The agent has been deleted.'));
186
		} else {
186
		} else {
187
			$this->Session->setFlash(__('The agent could not be deleted. Please, try again.'));
187
			$this->Session->setFlash(__('The agent could not be deleted. Please, try again.'));
188
		}
188
		}
189
		return $this->redirect(array('action' => 'index'));
189
		return $this->redirect(array('action' => 'index'));
190
	}}
190
	}
-
 
191
	public function authenticate(){
-
 
192
		$this->log(print_r($this->request->data,1),'authenticatication');
-
 
193
		$this->response->type('json');
-
 
194
		$this->layout = 'ajax';
-
 
195
		$this->User->recursive = -1;
-
 
196
		$email=$this->request->data['email'])
-
 
197
		$password=$this->request->data['password'])
-
 
198
		$role=$this->request->data['role'])
-
 
199
	}
-
 
200
}