Closed (fixed)
Project:
Front Page
Version:
5.x-1.8
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2007 at 18:33 UTC
Updated:
3 Oct 2007 at 12:44 UTC
Hi,
I am trying to pass login info from a form on a non-drupal site. This works if I use the form action "user", but the front page form action is
"/front_page?destination=front_page"
This works on the drupal site of course, but not from the external site. addint the http:// info in front does not help either.
Here is the current form:
<form action="http://www.immireports.com/user" method="post" id="user-login">
THIS WORKS BUT TAKES ME TO THE MY ACCOUNT PAGE
<form action="http://www.immireports.com/front_page?destination=front_page" method="post" id="user-login-form">
NOT WORKING EXTERNALLY
<div><div class="form-item">
<label for="edit-name">Username: <span class="form-required" title="This field is required.">*</span></label>
<input type="text" maxlength="60" name="name" id="edit-name" size="60" value="" tabindex="1" class="form-text required" />
<div class="description">Enter your username.</div>
</div>
<div class="form-item">
<label for="edit-pass">Password: <span class="form-required" title="This field is required.">*</span></label>
<input type="password" name="pass" id="edit-pass" size="60" tabindex="2" class="form-text required" />
<div class="description">Enter the password that accompanies your username.</div>
</div>
<input type="hidden" name="form_id" id="edit-user-login" value="user_login" />
<input type="submit" name="op" id="edit-submit" value="Log in" tabindex="3" class="form-submit" />
</div></form>
[I added <code> and </code> tag so people could see the html: nevets]
Comments
Comment #1
jefbak2 commentedThanks for the code tags. Now I know...
Comment #2
jefbak2 commentedFixed it:
Front Page users trying to login from external site can use this post method:
First I added the Login Destination Module
Then changed the post url to:
http://www.immireports.com/user?destination=front_page
Works great from non-drupal sites.