# |
Sep 11th 2009, 09:46 |
markstory |
use a different alias.. |
# |
Sep 11th 2009, 09:46 |
jessica-m |
how can i fix this? |
# |
Sep 11th 2009, 09:46 |
jessica-m |
for some reason i am getting an error with a non unique alias |
# |
Sep 11th 2009, 09:46 |
jessica-m |
http://bin.cakephp.org/view/494592345 |
# |
Sep 11th 2009, 09:42 |
hmv |
i ll bake the whole model again thanks for the response |
# |
Sep 11th 2009, 09:41 |
hmv |
@markstory i hav used the same for hash('temp',null,true) and now i even tried as tehtreag said sha1($salt.$password) i got same results but still not able to figure it out |
# |
Sep 11th 2009, 09:40 |
_chris_ |
cos i am returning a json but part of it needs to come from an element |
# |
Sep 11th 2009, 09:39 |
_chris_ |
can i load up the contents of an element into a variable to return to an ajax call? |
# |
Sep 11th 2009, 09:37 |
markstory |
and just think if you had baked a users/add method you would have never even had this problem :) |
# |
Sep 11th 2009, 09:36 |
markstory |
hmv: so your passwords will never match. |
# |
Sep 11th 2009, 09:36 |
markstory |
TehTreag: yeah I'm a buzzkill like that. |
# |
Sep 11th 2009, 09:33 |
TehTreag|AFK |
markstory: You take all the fun out of reading the api. |
# |
Sep 11th 2009, 09:33 |
markstory |
is the proper way for salty hashes |
# |
Sep 11th 2009, 09:33 |
markstory |
hash('temp', null, true); |
# |
Sep 11th 2009, 09:32 |
_patton |
hmv: function hash($string, $type = null, $salt = false) { |
# |
Sep 11th 2009, 09:32 |
_patton |
hmv: if you are using Security::hash('temp') maybe you need to specify the salt. auth might be using that when it hashes the password you pass it, before it matches against what you have in the db |
# |
Sep 11th 2009, 09:30 |
TehTreag|AFK |
__mork1: nanu-nanu |
# |
Sep 11th 2009, 09:30 |
__mork1 |
bye folks. happy coding |
# |
Sep 11th 2009, 09:30 |
TehTreag|AFK |
hmv: hmvrulz: _patton: http://irc.cakephp.org/logs/link/1031692#message1031702 |
# |
Sep 11th 2009, 09:30 |
KarlHungus |
ACTION sighs |
# |
Sep 11th 2009, 09:30 |
_patton |
hmv: sorry, forget that last comment |
# |
Sep 11th 2009, 09:29 |
_patton |
hmv: not via cake? does the salt go first or last? I'm not sure... |
# |
Sep 11th 2009, 09:29 |
hmv |
so i hav used that function |
# |
Sep 11th 2009, 09:29 |
hmv |
in the database |
# |
Sep 11th 2009, 09:29 |
hmv |
@patton but i am inserting it manually |
# |
Sep 11th 2009, 09:28 |
_patton |
hmvrulz: if you are using auth component, you don't need to hash the password manually using Security class, auth will do that for you when the user is registered... |
# |
Sep 11th 2009, 09:28 |
_chris_ |
can i load the contents of an element into a variable in a controller? |
# |
Sep 11th 2009, 09:28 |
hmvrulz |
http://book.cakephp.org/view/172/Authentication i hav done as this manual nothing extra |
# |
Sep 11th 2009, 09:27 |
hmvrulz |
do i have to |
# |
Sep 11th 2009, 09:27 |
hmvrulz |
@_patton i am not checkin anything i hav left login action blank |
# |
Sep 11th 2009, 09:25 |
FMC |
How to look in an associated like. Actual controller : Article that belongsTo Post. Post hasMany Comment. From Article.view, $this->Post->Comment->find('all') find all Comments, not the one linked to Post that is linked to Article |
# |
Sep 11th 2009, 09:25 |
jrod |
tPl0ch: :) |
# |
Sep 11th 2009, 09:25 |
tPl0ch |
jrod: do you have an url to the site where you were using red5? |
# |
Sep 11th 2009, 09:25 |
_patton |
hmvrulz: are you using auth component? that hashes the password from the form automagically before you check against it in controller... |
# |
Sep 11th 2009, 09:25 |
KarlHungus |
hmvrulz: and does the password in teh query match the result from Security::hash? |
# |
Sep 11th 2009, 09:25 |
TehTreag|AFK |
hmvrulz: See http://api.cakephp.org/class/security#method-Securityhash |
# |
Sep 11th 2009, 09:24 |
KarlHungus |
hmvrulz: what is the query? |
# |
Sep 11th 2009, 09:24 |
TehTreag|AFK |
hmvrulz: Passwords are hashed by default as - sha1($salt.$passwd) |
# |
Sep 11th 2009, 09:24 |
hmvrulz |
can anyone guide me |
# |
Sep 11th 2009, 09:23 |
hmvrulz |
when i use login xyz and password temp it shows login error invalid user name and password |
# |
Sep 11th 2009, 09:23 |
hmvrulz |
i hav used output of this as password |