Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ensurePasswordStrength: memory exhausted error #60

Open
Finetuned opened this issue Jan 13, 2016 · 1 comment
Open

ensurePasswordStrength: memory exhausted error #60

Finetuned opened this issue Jan 13, 2016 · 1 comment

Comments

@Finetuned
Copy link

It's possible to exceed the php memory limit in a Register snippet with the following settings:

&ensurePasswordStrength=`1`

Add a password field:

<input id="password" type="password" name="password:required:minLength=6" value="[[+password]]" placeholder="minimum 6 characters"/> 

and submit the form without entering any text in the password field.

Removing ensurePasswordStrength from the Register params and the form behaves as expected.

@Kookabura
Copy link

Kookabura commented Mar 14, 2017

The error is on 402 line of login\controllers\web\Register.php. The cause it strpos of empty variable.
I resolved it by adding additional check in ensurePasswordStrength function. I wrapped 343-364 lines into if statement.

Kookabura added a commit to Kookabura/Login that referenced this issue Mar 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants