Hastymail2

Hastymail2 is an Open Source IMAP webmail client written in PHP. Our focus is compliance, usability, security, and speed.

Hastymail 2

avatar
Custom Login Page
Is there a way to use a custom login page like with the old hastymail? If not I'd like it as a new feature.
Reply /Quote
avatar
Re: Custom Login Page

You can definitely create a custom login form and put it on any page you like. Here is a basic login form. It assumes that hastymail is installed on the same virtual host at /hastymail2/.

<form method="post" action="/hastymail2/?page=login">
<input type="text" name="user" />
<input type="password" name="pass" />
<input type="submit" name="login" value="Login" />
</form>

Jason

Reply /Quote
avatar
Custom Login Page
I have the form made and it logs in correct but clicking some links is a problem. My set up has indexes set up differently so the index.php is overrode by htaccess. The links go to /hastymail2/?... and I need it to direct to /hastymail2/index.php?...  Any way to fix this?
Reply /Quote
avatar
Custom Login Page

Ive been looking in to making a small plugin to direct all pages to /hastymail2/index.php?... instead of /hastymail2/?... but Im not sure of a way to make the output so all the links on the page direct to /hastymail2/index.php?... instead of just /hastymail2/?...

 Thought Id make the plugin to help anyone else in my situation plus I want to contribute to the hastymail project.

Reply /Quote
avatar
Re: Custom Login Page

  I am not sure if you are still interested in this but I stumbled upon a way to do what you want. In the hastymail2.conf file is a setting called "url_base".  Normally this is set to the directory containing the Hastymail2 code but you can add "index.php" to the end and it should solved the problem:

url_base = /hastymail2/index.php

Seems to work fine here and all the urls now contain a direct reference to index.php.

Hope that helps,
Jason Munro
jason@hastymail.org

Reply /Quote


 SourceForge.net Logo