I want to create a login box on my main page whcih automatically authenticates the user rather than using the drupal login box. I want to replicate the login box functionality. So I tried this (cut and paste from login box of Drupal)
File index.html (drupal direcory is in this folder as index.html)..tags removed as I cannot post it raw HTML
form name="loginbox" action="drupal/?q=user/login" method="post"
input type="hidden" name="edit[destination]" value="drupal/?q=node"
input type="text" name="edit[name]" size="18"
input type="password" name="edit[pass]" size="18">
input type="submit" name="op" value="Login" /form;
But this takes me back to the drupal's login form rather than log me in..Could anybody please help me able to login in from my login box rather than drupal's..What are the steps necessary and what am i doing wrong
Comments
hi, still iam also searching for these type of solution
hi friend, i still wants these type of functionality , a simple page with login box of drupal. If i found any solution let you know. all the best
Maybe this is helpful
I did something interesting:
I created a block named "custom_user_login_block', and set the input filter to php code. Also, set this block visibility to anonymous user only. Then, in the block body i added the following code:
Now if you stick this custom_user_login_block to a region, you will see it in effect.
BR,
Jim