Author |
|
julmot Newbie
Joined: 30 December 2014 Location: Germany
Online Status: Offline Posts: 2
|
Posted: 30 December 2014 at 2:01pm | IP Logged
|
|
|
Hi,
currently I am using AfterLogic PHP Lite on my webhosting. I created a email user e.g. "web114p_3". I can now successfully log me in with this username instead of a email adress, since the account will only accessable with this username.
All is working great but after sending my first email I found out that I can not edit the primary identity. This is a problem since the senders email adress will be like web114p_3@someserver.tld.
I think a few people will have this problem, so could someone tell me the workaround?
Cheeers
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 31 December 2014 at 3:08am | IP Logged
|
|
|
To solve the problem, I'd suggest to use the plugin for email-to-username mapping. In the plugin code, you can specify any rules which would allow to find username based on email address you enter, something like this:
Code:
public function PluginIntegratorLoginToAccount(&$sEmail, &$sIncPassword, &$sIncLogin, &$sLanguage)
{
if ($sEmail=="myname@my.domain.com") $sIncLogin = "login_myname";
if ($sEmail=="admin@my.domain.com") $sIncLogin = "login_admin";
...
} |
|
|
That way, you can log in by specifying email address, with no need to supply username - it will be automatically located by the plugin code.
Also, in the next release, we'll be adding a way to set default identity, which looks like another way of solving this problem.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
julmot Newbie
Joined: 30 December 2014 Location: Germany
Online Status: Offline Posts: 2
|
Posted: 01 January 2015 at 10:27am | IP Logged
|
|
|
Hi Igor,
thanks for your reply. A mapping between usernames and email adresses would be a good solution if you have only a few constant usernames. But if you have many and often changing usernames that would be a huge effort to adjust the usernames every time something changes. I can not automate this since I have no influence to the admincenter where users create there email accounts. Is there no better workaround?
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 01 January 2015 at 12:09pm | IP Logged
|
|
|
What exactly do you need? How is it supposed to work in your opinion?
Regards,
Alex
|
Back to Top |
|
|
hachre Newbie
Joined: 14 January 2015
Online Status: Offline Posts: 4
|
Posted: 14 January 2015 at 10:07pm | IP Logged
|
|
|
Hi Alex and Igor,
I have the same problem that the original poster has.
3 Solutions come to mind:
1. Allow changing the "default" mail address after being logged in without having to create a new identity. This way the user can manually correct the wrong mail address that is assumed by the system.
2. Allow setting an identity as a default From, so that the user can manually set up an identity and use that to correct the mail address.
3. Enable a special configuration option that would change the registration workflow. After the first login (the very first one, when a user gets registered in the system) the user is asked for their from name and mail address. That data is then used to seed the initial address and afterwards the user is not being asked for that info anymore on login.
My order of preference would be solution 3 then 1 then 2.
Great product! Thanks for everything!
P.S. Some more explanation. The problem stems from the fact that on our servers the username and the email address of a user has absolutely nothing in common. One solution is to use the "Both" login field but that is a nuissance because the user has to type in their mail address every login, even though the system only needs to know it once in our case. However there is no way to correctly predict the mail address. That is why solution 3, a form that asks for the mail address after the first login but before showing the webmail interface would be the best solution for us.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 15 January 2015 at 1:43am | IP Logged
|
|
|
Option 2 is already implemented and will become available in next version of the product. Other options sound interesting but that's not really something we would include into regular version of the product, as it looks like really non-typical case. Ordering custom development is always an option of course, and as for option 3, this is something an external PHP application could do - gather information about username, password, email account, then log user in programmatically.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
hachre Newbie
Joined: 14 January 2015
Online Status: Offline Posts: 4
|
Posted: 16 January 2015 at 10:17pm | IP Logged
|
|
|
Thanks!
|
Back to Top |
|
|