I’m getting a weird issue with the ForgotPassword functionality of the login package...
I’m using an exact copy of the default forgot password form, if someone enters a user name OR email address that is not in the system I get an error thrown:
Fatal error: Call to a member function toArray() on a non-object in /var/www/vhosts/oncologyeducation.ca/subdomains/modx/httpdocs/core/cache/elements/modsnippet/9.include.cache.php on line 89
If the person enters a correct user name & no email, no mail is sent
If a person enters a correct email & no username, the reset password mail is sent [and the password is reset]
There are no errors in the modx logs, no real hint as to what is happening, and nothing has been customized much. [I’m pretty sure, but not 100% that it was working]
here is the forgot password resource:
[[!ForgotPassword? &resetResourceId=`214` &tplType=`modChunk` &tpl=`lgnCustomForgotPassTpl`]]
the reset resource is [214]:
[[!ResetPassword? &loginResourceId=`215` &tplType=`modChunk` &tpl=`lgnCustomResetPassTpl`]]
the lgnCustomForgotPassTpl:
<form class="loginFPForm" action="[[~[[*id]]]]" method="post">
<ul class="login-form forgot-password">
<li class="login-errors"><label> </label>[[+loginfp.errors]]</li>
<li>
<label>User Name</label>
<input class="loginFPUsername" type="text" name="username" value="[[+loginfp.post.username]]" />
</li>
<li class="instruction">[[%login.or_forgot_username]]</li>
<li>
<label>Email Address</label>
<input class="loginFPEmail" type="text" name="email" value="[[+loginfp.post.email]]" />
</li>
<li>
<input class="returnUrl" type="hidden" name="returnUrl" value="[[+loginfp.request_uri]]" />
<input class="loginFPService" type="hidden" name="login_fp_service" value="forgotpassword" />
<label> </label>
<input type="submit" name="login_fp" value="[[%login.reset_password]]" class="reset-password" />
</li>
</ul>
</form>
-anyone seen this before??
-thanks
-sean