terminal42 / contao-autoregistration

Auto-login your Contao users after their registration or account activation.
MIT License
7 stars 7 forks source link

"Warning: empty password" is displayed in dev mode if send registration module #9

Closed zonky2 closed 4 years ago

zonky2 commented 4 years ago

"Warning: empty password" is displayed in dev mode if send registration module

ErrorException:
Warning: empty password

  at /www/htdocs/123/contao4_xyz/vendor/symfony/security-core/Encoder/SodiumPasswordEncoder.php:93
  at Symfony\Component\Security\Core\Encoder\SodiumPasswordEncoder->isPasswordValid('$argon2id$v=19$m=65536,t=4,p=1$z1ikzcDLEwAtobaEzYsagQ$v53vSUJBw0f5vKqBET8/wyNnNLZFRodp39yLUGl1RWo', null, null)
     (/www/htdocs/123/contao4_xyz/vendor/symfony/security-core/Encoder/MigratingPasswordEncoder.php:47)
  at Symfony\Component\Security\Core\Encoder\MigratingPasswordEncoder->isPasswordValid('$argon2id$v=19$m=65536,t=4,p=1$z1ikzcDLEwAtobaEzYsagQ$v53vSUJBw0f5vKqBET8/wyNnNLZFRodp39yLUGl1RWo', null, null)
     (/www/htdocs/123/contao4_xyz/vendor/contao/core-bundle/src/Resources/contao/modules/ModuleRegistration.php:225)
  at Contao\ModuleRegistration->compile()
     (/www/htdocs/123/contao4_xyz/vendor/contao/core-bundle/src/Resources/contao/modules/Module.php:209)
  at Contao\Module->generate()
     (/www/htdocs/123/contao4_xyz/vendor/contao/core-bundle/src/Resources/contao/modules/ModuleRegistration.php:56)
  at Contao\ModuleRegistration->generate()
     (/www/htdocs/123/contao4_xyz/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:414)
  at Contao\Controller::getFrontendModule('6')
     (/www/htdocs/123/contao4_xyz/vendor/contao/core-bundle/src/Resources/contao/library/Contao/InsertTags.php:512)
  at Contao\InsertTags->doReplace('<!-- TEMPLATE START: vendor/contao-bootstrap/layout/src/Resources/contao/templates/fe_bootstrap.html5 --><!DOCTYPE html><html lang="de"><head>      <meta charset="utf-8">    <title>Zur Kasse </title>    

....

</body></html><!-- TEMPLATE END: vendor/contao-bootstrap/layout/src/Resources/contao/templates/fe_bootstrap.html5 -->')
     (/www/htdocs/123/contao4_xyz/vendor/contao/core-bundle/src/Resources/contao/classes/FrontendTemplate.php:128)
  at Contao\FrontendTemplate->compile()
     (/www/htdocs/123/contao4_xyz/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Template.php:319)
  at Contao\Template->getResponse()
     (/www/htdocs/123/contao4_xyz/vendor/contao/core-bundle/src/Resources/contao/classes/FrontendTemplate.php:86)
  at Contao\FrontendTemplate->getResponse(true)
     (/www/htdocs/123/contao4_xyz/vendor/contao/core-bundle/src/Resources/contao/pages/PageRegular.php:50)
  at Contao\PageRegular->getResponse(object(PageModel), true)
     (/www/htdocs/123/contao4_xyz/vendor/contao/core-bundle/src/Resources/contao/controllers/FrontendIndex.php:339)
  at Contao\FrontendIndex->renderPage(object(PageModel))
     (/www/htdocs/123/contao4_xyz/vendor/symfony/http-kernel/HttpKernel.php:158)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (/www/htdocs/123/contao4_xyz/vendor/symfony/http-kernel/HttpKernel.php:80)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (/www/htdocs/123/contao4_xyz/vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (/www/htdocs/123/contao4_xyz/web/index.php:31)
fritzmg commented 4 years ago

What exactly do you mean? You want to show a warning?

zonky2 commented 4 years ago

What exactly do you mean?

Sorry...

I have a page with registration module with the fields username and password - if I fill it out and send it, the warning will appear if dev mode on...

...but if I install terminal42/contao-mailusername the message no longer appears

fritzmg commented 4 years ago

Please edit the issue's title and description, so that everyone knows what you mean ;)

zonky2 commented 4 years ago

o.k.

fritzmg commented 4 years ago

The title still says "Show "Warning: empty password" in dev mode if send registration module". But as far as I understood your description, a warning is already shown and you are reporting that warning?

zonky2 commented 4 years ago

may be better...

richardhj commented 4 years ago

@zonky2 Ich kann contao-autoregistration nirgends im Stack Trace finden…

zonky2 commented 4 years ago

@richardhj war das einzige Repo was ich gesehen habe, was symfony/security-core required

richardhj commented 4 years ago

https://github.com/contao/contao/blob/b4460960d6d7dc35bf4a87bcb7a503bce1df0d6d/core-bundle/src/Resources/contao/modules/ModuleRegistration.php#L225

für mich sieht das einfach so aus, dass jemand kein Passwort eingegeben hat. oder keinen Username?

zonky2 commented 4 years ago

hatte ich aber... mehrfach geprüft

richardhj commented 4 years ago

Siehe https://github.com/contao/contao/issues/1809