Closed pmoura closed 4 years ago
You may also need a third clause for the new_status_if_remembering /4
predicate before the one with the suggestion:
new_status_if_remembering(ok_remember, _, _, ok_remember).
This is pretty straightforward code. I'd say just PR these.
If you change the following line:
https://github.com/Anniepoo/identity/blob/83a90ed939d06988ad2fd5e2c8b72d3bd0ccb2ca/prolog/identity/login_page.pl#L216
to e.g.
then you can rewrite the clause:
by writing instead:
This will give first-argument indexing with no spurious choice-points for the
do_actual_login/4
predicate without using cuts or\+/1
calls as in the original clause.I can convert this suggestion into a pull request but I may be missing some detail as I only skimmed the code.