Mike Duncan

WebDirect 16 - custom login form with homeurl bad redirect

Discussion created by Mike Duncan on Jun 28, 2017
Latest reply on Jul 4, 2017 by LisaRose

When trying to include a homeurl in a custom login form, using the newly available user and pwd submitted with POST, I get redirected to a malformed URL if the login was not successful.

 

Sample html form:

 

<form action="https://server_name/fmi/webd/fileName" method="post">

User: <input type="text" name="user" value="test" /><br />

Pwd: <input type="text" name="pwd" value="test" /><br />

<input type="hidden" name="homeurl" value="https://my_other_server_name/" />

<input type="submit" value="Submit" />

</form>

 

The above form will also ignore the homeurl redirect on successful login, when exiting the session. Below works, but will also redirect to the malformed URL if login is unsuccessful.

 

<form action="https://server_name/fmi/webd/fileName?homeurl=https://my_other_server_name" method="post">

User: <input type="text" name="user" value="test" /><br />

Pwd: <input type="text" name="pwd" value="test" /><br />

<input type="submit" value="Submit" />

</form>

 

 

The redirect looks like this:

https://server_namehttps//my_other_server_name?homeurl=https://my_other_server_name&db=fileName&loginerr=212&guesten=0

Outcomes