you want, and in there call the function in the model (below), which
would return true/false, and if(true){ do this } else { do this }
For the model:
Make a new function to be called in the controller, use $this-
>field(Tablename.fieldname) to get the individual values from the
table, use if/else to compare 'em, returning either true or false.
Hope that helps.
On Jun 28, 3:54 pm, Melanie Sommer <melanie-som...@mailinator.com>
wrote:
> Hello,
>
> I would like to use the user and password table of a CMS for
> authentification in my small cake application.
>
> So I told cake to use the table form the database for users.
> class User extends AppModel {
> var $useTable = 'cms_users';
>
> }
>
> I know how to check whether the password from the form and the
> password hash from the CMS database match, but I have no idea how to
> continue after that.
>
> I can't atomacigally use the auth-login function, because this will
> encrypt the passwort using the salt from cofiguration file and compare
> it to the database - this will obviously not work as the encryption
> method (not only the salt) is different.
>
> Can anyone help me?
> Melanie
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment