Posted on 17/01/2017 15:03:51
Hi Jens Jakob
You can do that - you can see an example here: http://wrap.dynamicweb-cms.com/
This is the login dialog:
<form role="form" id="loginform" method="post">
<div class="modal-body">
<input name="ID" value="8398" type="hidden">
<input name="DWExtranetUsernameRemember" value="True" type="hidden">
<input name="DWExtranetPasswordRemember" value="True" type="hidden">
<div class="form-group">
<label for="username">Email</label>
<input class="form-control" name="username" id="username" placeholder="Skriv email" value="" type="text">
</div>
<div class="form-group">
<label for="password">Kodeord</label>
<input class="form-control" name="password" id="password" placeholder="Skriv kodeord" type="password">
<p> </p>
<a class="pull-left" href="/Default.aspx?ID=8482&LoginAction=Recovery">Har du glemt dit kodeord?</a>
</div>
</div>
<div class="modal-footer">
<div class="row">
<div class="col-md-12">
<div class="checkbox pull-left">
<label>
<input name="Autologin" checked="checked" value="True" type="checkbox"> Husk mig
</label>
</div>
<button type="submit" class="btn btn-xs btn-base pull-right">Log ind</button>
</div>
</div>
</div>
</form>
If you do not do anything else, the login will redirect you back to this page (the referer).
You can also add a hidden field to the login dialog: <input type="hidden" value="Default.aspx?ID=123&something=else" name="Redirect"> and the login will redirect to that, or you can say it should not make any redirects doing like this: <input type="hidden" value="False" name="Redirect">
BR Nicolai