wmk

injector either uses a "setFoo" method or write to $object->Foo directly

wmk

nah, it should work. Are you sure, you're using the standard MemberLoginForm?

Bart van Irsel

SubmittedFormField thing works but the loggedInAsField property doesnt ..

Bart van Irsel
  1. SilverStripe\Core\Injector\Injector:
  2. SilverStripe\UserForms\Model\Submission\SubmittedFormField:
  3. class: StripIt
  4. SilverStripe\Security\MemberAuthenticator\MemberLoginForm:
  5. properties:
  6. loggedInAsField: 'Email'
wmk
  1. SilverStripe\Core\Injector\Injector:
  2. SilverStripe\Security\MemberAuthenticator\MemberLoginForm:
  3. properties:
  4. loggedInAsField: 'Email'

assuming you have the correct FQCN

Bart van Irsel

changing MemberLoginForm.php is success but that's not the way 🙂