RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > SVN Releases > Requests

For more information about the ads and why they're here, please see the FAQ
Reply
  #1  
Old 01-02-2007, 07:18 PM
Registered User
 
Join Date: Jan 2007
Posts: 54
Downloads: 0
Uploads: 0
Default How to go login and go to inbox programatically after registering a new user

Hello all,

I am new to roundcube and this is my 1st message.

I have developed a page where people can register into my mail server.
It works ok except that I don´t know how to log in the user(i have the $user & $pass) so i want to use them to log in the user and i want to go to the inbox after that.

I am struggling to understand the index.php file and i don´t know how to do it.

Can anyone help me?

Thanks. Ed.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 01-03-2007, 03:16 PM
Registered User
 
Join Date: Dec 2006
Posts: 2
Downloads: 0
Uploads: 0
Default Re: How to go login and go to inbox programatically after registering a new user

This question is probably offtopic in the requests forum...

If I understand you correctly, then one possible hack to do it would be using a intermediary page like the following, which would just submit the form with login-information to roundcube:

Code:
<html>
<head>
 <title>Redirect page</title>
</head>
<body onload="forms[0].submit();">
<form action="my-roundcube-url" method="post">
 <input type="hidden" name="_action" value="login">
 <input type="hidden" name="_user" value="$user">
 <input type="hidden" name="_pass" value="$pass">
 <input type="submit" value="Enter Mailbox">
 </form>
</body>
</html>
Nothing pretty, but should work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 02-28-2007, 04:10 PM
Registered User
 
Join Date: Jan 2007
Posts: 54
Downloads: 0
Uploads: 0
Default Re: How to go login and go to inbox programatically after registering a new user

Hi,

I didn´t see your answer until now.

Thanks for answering.

I haven´t been able to solve it (well actually once it worked 2 or 3 times and then it hang up again).

Ed.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 01-20-2008, 11:45 PM
Registered User
 
Join Date: Jan 2008
Posts: 18
Downloads: 0
Uploads: 0
Default Re: How to go login and go to inbox programatically after registering a new user

I didn't think i should post in this thread considering that it's in the wrong category, but I didn't think it would be right to make another post about this same thing, so here it goes. I've been using Roundcube for about a month now for a free email site much like yahoo mail. I'm using the latest RC2 version, and I have a registration system. About the registrations system to start, how it works it it runs through two files, the first is the data gathering section (form), the second is the data processing section (form processor). The form section gathers the appropriate information such as "Username" and "password" as well as a javascript password validation. The form processing section takes the form data and creates a new account through cpanel, with this method everything worked great but there was one problem, the users that registered had no way of knowing if they were registered, if there username was already taken, or if the server had an error. So I came up with a solution, the form processor would make the request to cpanel, and it would return the page contents, from there I added in a couple of these:
Code:
if (strpos($page, 'successfully') !== false) { echo '<center><h3>Registered</h3>Your account has been created, you may now login</center>'; }
and from there everyhting was working really smooth, the users liked it and I was happy. Now I've come accross this post and would like to implement this into my site but the problem is that theres no way for this form to tell weather the user was registered or not to log him in, how would I make it so that if the page returned successfully it sends the form to log in?

Thanks in advance,

John

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 01-21-2008, 06:12 AM
Super Moderator
 
Join Date: Dec 2007
Location: Germany
Posts: 422
Downloads: 10
Uploads: 0
Send a message via MSN to rosali
Default Re: How to go login and go to inbox programatically after registering a new user

Adjust the following code for your needs and place it in your registration script in an appropriate place.

Code:
// Login new user
$_POST['_user'] = $strUser . "@" . $strDomain;
$_POST['_pass'] = $strPass;
$_POST['_host'] = $strHost;
$_action = "login";
NOTE: Your registration script must be included into roundcube index.php. Otherwise it won't work. You can submit the login and action data by URL. In this case you have to take care that the login data is encrypted strongly.

-Roland
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

For more information about the ads and why they're here, please see the FAQ

All times are GMT. The time now is 07:41 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright © 2006-2008 RoundCube Webmail Community