Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Checkout
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Jul 2016 at 14:43 UTC
Updated:
4 Sep 2016 at 22:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
daria.a commentedComment #3
mglamanYou haveI just looked at \Drupal\user\Form\UserLoginForm::validateFinal, which seems to be what you referenced. Can you provide some inline comments referring to there, and that's why we check input v. the values?$valuesavailable, use that.Long array usage. Convert to
[]Use
Url::fromRouteComment #4
daria.a commentedHello Matt,
and thank you for your answer; I've changed the patch based on it.
Talking about point 1 from you post, now I think we don't really need to use getUserInput() in this case. The method \Drupal\user\Form\UserLoginForm::validateFinal is being used in the last step of validation process and the data of the form could be altered during the previous steps (as it's written in the comment for the method). But in our case we don't use several validation methods and so now I've choose to use the $values for getting username.
Hope I was able to got your points right, if not, I would be really glad to hear additional recommendations about this patch improvements.
Comment #5
daria.a commentedComment #7
bojanz commentedTweaked based on GitHub comments, and committed. Thanks!