Thanks for the info. I’ll give it a go after I get the code tested. I did install Git successfully on my Windows computer, and I even created a GitHub account, but I have yet to do anything with it
.
A quick note: I use extended fields, so I will modify your code slightly. Instead of &readOnly fields, I will use &allowedFields, and change it to if NOT in_array:
<?php
if (!empty($login->config['allowedFields'])) {
$allow = explode(',', $login->config['allowedFields']);
foreach ($fields as $k => $v) {
if (!in_array($k, $allow) {
unset $fields[$k];
}
}
}
That way, users can’t just add a million extended fields. Not that someone would figure it out
, but you never know....