View Full Version : Change email password from webmail?
percus
02-19-2004, 06:18 PM
Is there a way for the user to change his email account password from webmail or some other web interface?
Eagle1
02-19-2004, 08:34 PM
This was would be a nice feature to have.
Better yet, how about a end user cp, where they can change their password, create/change/delete a vacation message, and autologon to their webmail.
Eddie
existenz
02-19-2004, 10:29 PM
This can all be done with SquirrelMail and I have been slowly working on it in the past just as SquirrelMail as added to DirectAdmin. I just have not had time lately.
The problem is that DA modify's a few things and does stuff a little different then if you just setup the same software by default. The plug-ins to make SquirrelMail do this stuff assume it is a defult clean install. It is not impossible I just did't finish everything I needed to do to get it to work.
I thought I read someone that they were looking into this. I will also take a look tommrow when I have time to see if I can't just get the password issue resolved.
DirectAdmin Support
02-20-2004, 09:18 AM
domain.com:2222/CMD_CHANGE_EMAIL_PASSWORD
A link could be added to that somewhere in the squirrelmail skin.
John
Eagle1
02-20-2004, 11:20 AM
How can I make this a relative link in the webmail program?
I have added a link to the login.htm and want to add :2222/CMD_CHANGE_EMAIL_PASSWORD so people can change their password, but don't want it to be specific to one domain.
When I add the it shows it as http://www.domain/webmail/:2222/CMD_CHANGE_EMAIL_PASSWORD.
Is there any way around this?
Thanks, Eddie
Eagle1
02-20-2004, 12:03 PM
I found a workaround for now.
1. I edited the login.htm file in the themes directory of webmail andd added the following line:
<tr><td align=right class="title" colspan=2>.: <b>
{#lgn_passwd_msg#}</b> :.</td>
2. I added the following to the language file, under the heading Login, in the langs directory:
lgn_passwd_msg = Click <a target="_blank" href="passwd.php">here</a> to change your password
3. Then I created a file called passwd.php and put in the webmail directory. It contained the following:
<html>
<META http-equiv="refresh" content="0; URL=http://<? echo $HTTP_HOST ?>:2222/CMD_CHANGE_EMAIL_PASSWORD">
<head>
<title>Changing password...</title>
</head>
</html>
This let's the users change their password without having to send them to a different domain.
Hope this helps someone,
Eddie
Eagle1
02-20-2004, 12:05 PM
I almost forgot, you can see an example by going to http://www.deluxetech.com/webmail
Eddie
Eagle1
02-20-2004, 02:00 PM
Ok, now I have a small request.
It would be nice if the user would get a success or fail message after submitting the password change. Instead it just goes right to the DA login page.
Eddie
DirectAdmin Support
02-21-2004, 12:13 PM
Hello,
http://www.directadmin.com/api.html#email
Have a look at the redirect and/or api values that you can pass.
John
Eagle1
02-21-2004, 06:25 PM
Is it possible to pass on variables?
If possible, I would like it to redirect to the webmail login page I created, and automatically insert the email address and the new password, upon successful password change.
Thanks, Eddie
DirectAdmin Support
02-21-2004, 11:33 PM
Hello,
You can set the redirect to whatever you want, including:
http://domain.com/redirected.php?name=value
John
Eagle1
02-22-2004, 12:07 AM
Ok, how do I get that value?
I want to send the email address that is typed into the email box.
Eagle1
02-22-2004, 12:17 AM
Here is what I did. I uploaded these two files to the webmail directory. Then I call on the change password file by going to http://www.domain.com/webmail/passwd.php.
Does anyone know how I can pass over to the success.php file the email and the new password directly into the blank spaces, preferably in hidden fields?
Thanks, Eddie
DirectAdmin Support
02-22-2004, 11:02 PM
Hello,
Yes, but it would show up in the location bar:
In the post, you're on the right track:
<input type=hidden name=redirect value="http://<? echo $HTTP_HOST ?>/webmail/success.php?f_email=<? echo $f_email; ?>&f_pass=<? echo $f_pass; ?>">Then in the sucess.php:
<input type=text size=10 name="f_email" value="<? echo $_GET['f_email']; ?>">
<input type=password size=5 name="f_pass" value="<? echo $_GET['f_pass']; ?>"So, you've already got it... should work if you have registerglobals on, but this should work with them off..
John
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.