Not sure what’s going on here. I am using the default login form. I added a hidden redirect input, but the login in failing and redirecting anyway, and I’m getting a 401.
<form action="/public/api/members/login" method="POST">
<label for="email">Email</label>
<input type="text" name="Email">
<label for="password">Password</label>
<input type="password" name="Password">
{% if request.request_data.is_mobile == 1 %}
<div class ="captcha-holder">
<div class="g-recaptcha" data-size="compact" data-sitekey="6Lf2cGcUAAAAABbL4aDrclASNZx9S3uaI9EvpvlI"></div>
</div>
{% else %}
<div class =" captcha-holder">
<div class="g-recaptcha" data-sitekey="6Lf2cGcUAAAAABbL4aDrclASNZx9S3uaI9EvpvlI"></div>
</div>
{% endif %}
<input type="hidden" name="redirectURL" value="/members/member-portal">
<input type="submit" value="Login">
<a href="/request-reset-password">Forgot Password</a>
</form>