Project

General

Profile

custom_field_values on custom AuthSource

Added by Sylvain V about 10 years ago

Hi,

I've followed the doc here to add a custom AuthSource.

Which work pretty well. (the model's filename has an error reported here #18009)

Can I go a step beyond and also assign custom fields in the
./app/views/account/register.html.erb

with onthefly_register = 1?

I mean, I don't know how to populate custom_field_values on User registration.

it seems I can't give the values back in:

          retVal =
          {
            :firstname => resultRow[self.attr_firstname],
            :lastname => resultRow[self.attr_lastname],
            :mail => resultRow[self.attr_mail],
            :auth_source_id => self.id,
            #:company => resultRow['company']
          } if(onthefly_register?)

Assigning custom fields seem obscure how do I do that?