Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Example login php
if( ! $this->a1->login(Arr::get($post,'username',""),Arr::get($post,'password',""),Arr::get($post, 'remember', FALSE)))
throw new Kohana_Exception('Inexisting email');
throw new Kohana_Exception('Wrong password');
$session = $this->a1->session()->as_array();
$session["user"] = $this->a1->get_user();
$this->session = $session;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.