I am using the Login plugin and have 2 login forms that log the user into a different user group depending on which one they submit.
However, it does not seem they want to cooperate, being on the same page.
My code is as such:
<div id="seekersloginslider" class="ctaslider">
<h2>Job Seekers Login</h2>
[[!Login? &loginResourceId=`32`]]
</div>
<div id="employersloginslider" class="ctaslider">
<h2>Employers Login</h2>
[[!Login? &loginResourceId=`18`]]
</div>
No matter which form I use I will always be directed to Resource 32. If I try logging in with the lower 'Employers' form it will redirect to resource 32 and cause a 404.
If I remove the upper, 'Job Seekers' form, the lower login form works as expected, redirecting me to Resource 18.
Does anyone know a way to have both forms working on the same page?
It's all because first snippet catch the call. Your second snippet can't react.
You have to manipulate with submitVar
or actionKey
parameter. Just rtfm. You can get some information there also.