FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Automatically create user in an extranet
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Automatically create user in an extranet [message #19585 is a reply to message #18924] Sun, 08 August 2004 18:10 Go to previous messageGo to previous message
Pieter007 is currently offline  Pieter007   Netherlands
Messages: 1
Registered: August 2004
Karma:
Junior Member
Quote:


If the external application is a web app you can use a cookie to pass the login information to the forum.


Can you eloborate on this? It doesn't seem to follow from the content of cookies.inc.t.

In the meantime, there is another possible approach, just generate an invisible form and submit it using JavaScript:

<html>
<body>
<form action='/path/to/fud/index.php?t=login' method='post' name='frm'>
<?php
  echo "<input type='hidden' name='quick_login' value='" . $username . "'>";
  echo "<input type='hidden' name='quick_password' value='" . $passwd . "'>";
?>
</form>
<script language="JavaScript">
document.frm.submit();
</script>
</body>
</html>


Maybe not as clean as setting the right cookie(s), but certainly easy to understand and implement.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: just upgraded to 2.6.4
Next Topic: new themes
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 20:37:57 GMT 2024

Total time taken to generate the page: 0.04103 seconds