We had been incorrectly relying on the first character of the 'auth_id'
being '_' to indicate a non-challenge form, in which case the
username/password can be "blindly retried" from portal to gateway.
However, this has been wrong since v8.09 (specifically, the commit
593df6b1c09ea525a913d4d8401a95ffdb1877db). Unfortunately, it may be
responsible for some user reports of inability to login via portal
interface.
Discovered while writing gp-auth-and-config tests.
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
* unless it was a challenge auth form or alt-secret form.
*/
portal = 0;
- if (ctx->form->auth_id[0] == '_' && !ctx->alt_secret) {
+ if (strcmp(ctx->form->auth_id, "_challenge") && !ctx->alt_secret) {
blind_retry = 1;
goto replay_form;
}