I've created a custom login page (just a simple, branded HTML form with username/email and password fields) for logging into DirectAdmin and other hosting services. It works great for everything except Roundcube. Plenty of people asking how to do this on the Roundcube forums, with answers tending to fall into one of two categories: (1) modify Roundcube skins, or (2) modify the autologon plugin. I really don't want to muck around with Roundcube skins, and I wouldn't know where to start with the autologon plugin.
Reading about DA's one-click login to Roundcube feature made me wonder if I could just turn this on, post my form to CMD_WEBMAIL_LOGIN and let DA handle the rest—but it didn't work. If I look at the HTTP headers, I can see that the email and password are sent, but the server responds with 'X-DirectAdmin: Unauthorized'. At this point I'm hoping it's something relatively simple to fix and that a friendly fellow DA user can point me in the right direction.
Reading about DA's one-click login to Roundcube feature made me wonder if I could just turn this on, post my form to CMD_WEBMAIL_LOGIN and let DA handle the rest—but it didn't work. If I look at the HTTP headers, I can see that the email and password are sent, but the server responds with 'X-DirectAdmin: Unauthorized'. At this point I'm hoping it's something relatively simple to fix and that a friendly fellow DA user can point me in the right direction.
