raeldc / jelly-auth Goto Github PK
View Code? Open in Web Editor NEWJelly Driver for Kohana 3 Auth Module
Jelly Driver for Kohana 3 Auth Module
Steps to reproduce:
(mt_rand(1, 100) === 1)
conditional.new Model_Auth_User_Token;
Result:
Database_Exception [ 1103 ]: Incorrect table name '' [ DELETE FROM `` WHERE ``.`` < 1277913159 ]
I've worked around this by moving the garbage collection to the constructor. There's a patch here should you be interested.
Cheers,
Aron
While running "git submodule update --init" I get:
fatal: reference is not a tree: 5fe550860cef089a54e071ac2936bd99cea54bf5
Unable to checkout '5fe550860cef089a54e071ac2936bd99cea54bf5' in submodule path 'modules/jelly-auth'
related:
http://autonomousmachine.com/2009/2/7/git-error-fatal-reference-is-not-a-tree-error
When jelly-auth declares a not_empty
rule, the correct syntax is 'not_empty' => NULL
, but jelly-auth uses 'not_empty' => array(TRUE)
, which is incorrect.
Here are three places it's used incorrectly:
I'm not sure if this syntax problem exists elsewhere too.
Are you agree with adding the i18n call to 'password'?
$array->error($field, 'matches', array('param1' => __('password')));
The comments on Model_User_Token have not been modified from Sprig-Auth, so that the Sprig Auth package appears in the API browser when using Jelly Auth.
/**
This would allow you to login using any parameter supported by the unique key method. For example an email address. The ORM Auth module currently supports this.
Update line 264 in classes/auth/jelly.php to use Jelly_Builder::load()
which uses the :unique_key
parameter internally.
// From
$current = Jelly::select('user')->where('user', '=', $user)->limit(1)->execute();
// To
$current = Jelly::select('user')->load($user);
Cheers,
Aron
The auth module has committed new functionality that breaks with the current jelly-auth. I've forked the repos and made some changes in classes/auth/jelly.php.
I think I've also done a pull-request.. first time for me, that's why I've also added this issue :)
Hi,
Within the class Auth_Jelly
you refer to $this->_session and $this->_config ... why?
In Kohana_Auth, the references should be: $this->session and $this->config
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.