Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixing auth config for li3_users

  • Loading branch information...
commit 562adb6d3762098b87bd2020a4e66dbebff5a054 1 parent 60db932
@pointlessjon pointlessjon authored
Showing with 7 additions and 10 deletions.
  1. +7 −10 libraries/li3_users/config/bootstrap/session.php
View
17 libraries/li3_users/config/bootstrap/session.php
@@ -18,17 +18,14 @@
'name' => 'li3_user'
)
),
- 'adapter' => array(
- 'Form' => array(
- 'filters' => array(
- 'password' => array('lithium\util\String', 'hash')
- ),
- 'validators' => array()
- )
- ),
+ 'adapter' => 'Form',
'model' => '\li3_users\models\User',
- 'query' => 'login',
- 'fields' => array('_id', 'password')
+ 'fields' => array('_id', 'password'),
+ 'validators' => array(
+ 'password' => function($submitted, $actual) {
+ return \lithium\util\String::hash($submitted) == $actual;
+ }
+ )
)
));
Please sign in to comment.
Something went wrong with that request. Please try again.