doAuthPlugin icon indicating copy to clipboard operation
doAuthPlugin copied to clipboard

register is not working due to salt field

Open lubiluk opened this issue 15 years ago • 3 comments

There is an error: Unexpected extra form field named "salt". Wouldn't it be better to generate salt automaticly out of the box instead putting it to register form?

lubiluk avatar Sep 02 '10 22:09 lubiluk

Hi, i have the same problem! Did u find the solution?

ilbp90 avatar Dec 07 '10 19:12 ilbp90

Kind of... I've switched to the latest version of sfDoctrineGuard which has now all needed functionality including registering, password reset etc. Those features are there but not necessarily mentioned in documentation.

lubiluk avatar Dec 07 '10 19:12 lubiluk

But do Auth doesn't have dependency on sfDoctrineGuard, does it?

Well i unset the salt field from the form in plugins/doAuthPlugin/lib/form/doctrine/base/BaseRegisterUserForm.class.php in line 18 ... 18. unset($this['id'], $this['is_active'], $this['is_super_admin'], $this['last_login'], $this['created_at'], $this['updated_at'], $this['salt']); ...

And it worked..

Then something else came up, that i still need to figure out.! Error: The template "_mail_registration.php" does not exist or is unreadable in ""

ilbp90 avatar Dec 08 '10 13:12 ilbp90